Skip to content
Snippets Groups Projects
Commit 72822c19 authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Move dryrun and loglevel to ["application"]

parent 792d0910
Branches
No related tags found
No related merge requests found
......@@ -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:
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment