aboutsummaryrefslogtreecommitdiff
path: root/utils/python-rpc
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-12 13:45:42 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-16 20:50:15 +0000
commit294e858d57670e9b01e45f6dacc3e5d91d02703e (patch)
tree7b2355bc4efbee7cebeba7b30296a978549666ec /utils/python-rpc
parentMerge pull request #5452 (diff)
downloadmonero-294e858d57670e9b01e45f6dacc3e5d91d02703e.tar.xz
wallet_rpc_server: add set_log_level/set_log_categories
Diffstat (limited to 'utils/python-rpc')
-rw-r--r--utils/python-rpc/framework/wallet.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/wallet.py b/utils/python-rpc/framework/wallet.py
index 695325a86..2e2650f92 100644
--- a/utils/python-rpc/framework/wallet.py
+++ b/utils/python-rpc/framework/wallet.py
@@ -728,6 +728,28 @@ class Wallet(object):
}
return self.rpc.send_json_rpc_request(import_key_images)
+ def set_log_level(self, level):
+ set_log_level = {
+ 'method': 'set_log_level',
+ 'params': {
+ 'level': level,
+ },
+ 'jsonrpc': '2.0',
+ 'id': '0'
+ }
+ return self.rpc.send_json_rpc_request(set_log_level)
+
+ def set_log_categories(self, categories):
+ set_log_categories = {
+ 'method': 'set_log_categories',
+ 'params': {
+ 'categories': categories,
+ },
+ 'jsonrpc': '2.0',
+ 'id': '0'
+ }
+ return self.rpc.send_json_rpc_request(set_log_categories)
+
def get_version(self):
get_version = {
'method': 'get_version',