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: {
loglevel_idx = index;
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']
}
if defobj['loglevel'] == 'debug':
config['Default']['DebugEncryption'] = 'true'
else:
config['Default']['DebugEncryption'] = 'false'
for item in dataobj:
if item['ssl']:
sslval = 'true'