mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 03:59:33 +00:00
python-rpc: add set_log_level and set_log_categories
This commit is contained in:
parent
b3a32d5505
commit
23f86dad02
1 changed files with 12 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue