Enable debug encryption when logging set to debug

This commit is contained in:
Morgan McMillian 2021-09-08 06:45:30 -07:00
parent e25e526ec1
commit d41345adaa
2 changed files with 10 additions and 0 deletions

View file

@ -97,6 +97,11 @@ Page {
onDelegateClicked: { onDelegateClicked: {
loglevel_idx = index; loglevel_idx = index;
saveConfig(); saveConfig();
if (is_running) {
py.call('service.stop', [], function(result) {});
py.call('service.start', [], function(result) {});
get_status();
}
} }
} }

View file

@ -57,6 +57,11 @@ def save(defaults, data):
'loglevel': defobj['loglevel'] 'loglevel': defobj['loglevel']
} }
if defobj['loglevel'] == 'debug':
config['Default']['DebugEncryption'] = 'true'
else:
config['Default']['DebugEncryption'] = 'false'
for item in dataobj: for item in dataobj:
if item['ssl']: if item['ssl']:
sslval = 'true' sslval = 'true'