diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-24 20:59:06 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-11 11:08:06 +0000 |
commit | 23f86dad02f75339b7a018621c8a2062bd8baf2c (patch) | |
tree | 30a6b834a65eacb938a51e5dda982a5e216a6b33 /utils/python-rpc/framework/daemon.py | |
parent | functional_tests: add describe_transfer tests (diff) | |
download | monero-23f86dad02f75339b7a018621c8a2062bd8baf2c.tar.xz |
python-rpc: add set_log_level and set_log_categories
Diffstat (limited to '')
-rw-r--r-- | utils/python-rpc/framework/daemon.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/daemon.py b/utils/python-rpc/framework/daemon.py index 63befe16a..d4fd7d5b6 100644 --- a/utils/python-rpc/framework/daemon.py +++ b/utils/python-rpc/framework/daemon.py @@ -300,3 +300,15 @@ class Daemon(object): 'id': '0' } return self.rpc.send_json_rpc_request(get_output_histogram) + + def set_log_level(self, level): + set_log_level = { + 'level': level, + } + return self.rpc.send_request('/set_log_level', set_log_level) + + def set_log_categories(self, categories = ''): + set_log_categories = { + 'categories': categories, + } + return self.rpc.send_request('/set_log_categories', set_log_categories) |