diff --git a/stechuhr_client/client.py b/stechuhr_client/client.py index 619475beb04b11c34671f7752afe30d4a44eae7d..82ac2bf4ea540da4b15a1e7f763c855b2e1e8e97 100644 --- a/stechuhr_client/client.py +++ b/stechuhr_client/client.py @@ -184,7 +184,7 @@ def send_request(verified_id, config, logger) -> bool: "direction" : config["client"]["direction"], "id" : verified_id } - if not config["client"]["dryrun"]: + if not config["application"]["dryrun"]: try: r = requests.post(target_address, json=payload, timeout=config["server"]["timeout"], verify=config["server"]["verify_cert"]) except Exception as e: diff --git a/stechuhr_client/config.py b/stechuhr_client/config.py index d5a5eb64722e33c710198870a0f3b2e61b30be5e..951b0a4c574baa1b760b3626b7837087f3effada 100644 --- a/stechuhr_client/config.py +++ b/stechuhr_client/config.py @@ -16,6 +16,11 @@ APPLICATION_NAME = "stechuhr-client" # Do not change here, just use an override instead DEFAULT_CONFIG = """ +[application] +# Valid Log Levels are Debug, Info, Warning, Error, Critical +loglevel = "Debug" +dryrun = true + [server] address = "127.0.0.1" port = 80 @@ -37,9 +42,6 @@ id_patterns = [ "^FB67D500$", ] -# Valid Log Levels are Debug, Info, Warning, Error, Critical -loglevel = "Debug" -dryrun = true [reader] # Connect to the reader using this