~thrrgilag/pantalaimon-ut

d41345adaaad9c04205da1b46a672ea0106dae9f — Morgan McMillian 1 year, 2 months ago e25e526
Enable debug encryption when logging set to debug
2 files changed, 10 insertions(+), 0 deletions(-)

M qml/SettingsPage.qml
M src/config.py
M qml/SettingsPage.qml => qml/SettingsPage.qml +5 -0
@@ 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();
                }
            }
        }


M src/config.py => src/config.py +5 -0
@@ 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'