From d41345adaaad9c04205da1b46a672ea0106dae9f Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Wed, 8 Sep 2021 06:45:30 -0700 Subject: [PATCH] Enable debug encryption when logging set to debug --- qml/SettingsPage.qml | 5 +++++ src/config.py | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/qml/SettingsPage.qml b/qml/SettingsPage.qml index 8942b75..e9ff109 100644 --- a/qml/SettingsPage.qml +++ b/qml/SettingsPage.qml @@ -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(); + } } } diff --git a/src/config.py b/src/config.py index a245019..ebac935 100644 --- a/src/config.py +++ b/src/config.py @@ -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'