diff options
Diffstat (limited to 'utils/python-rpc')
-rw-r--r-- | utils/python-rpc/framework/wallet.py | 22 |
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', |