From 2eb8a99c4b4463a262b2a43232bd3ff64dd34d56 Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Thu, 7 Jan 2021 01:09:32 +0100 Subject: [PATCH] Module update and loglevel to config --- config_example/config.py | 6 ++---- leyk.py | 2 +- protocol | 2 +- socket_protocol | 2 +- state_machine | 2 +- stringtools | 2 +- 6 files changed, 7 insertions(+), 9 deletions(-) diff --git a/config_example/config.py b/config_example/config.py index 2f99e5e..25e770d 100644 --- a/config_example/config.py +++ b/config_example/config.py @@ -10,10 +10,8 @@ server_port = 10001 # Logging # APP_NAME = 'leyk' - -LOG_TARGET_STDOUT = 'stdout' -LOG_TARGET_FILE = 'logfile' -LOGTARGET = LOG_TARGET_STDOUT +LOGTARGET = 'stdout' +LOGLVL = 'DEBUG' LOGHOST = 'localhost' LOGPORT = 19996 diff --git a/leyk.py b/leyk.py index 7be51f2..1bd60bc 100644 --- a/leyk.py +++ b/leyk.py @@ -10,7 +10,7 @@ import time if __name__ == '__main__': - report.appLoggingConfigure(os.path.dirname(__file__), config.LOGTARGET, ((config.APP_NAME, 'DEBUG'), ), fmt=config.formatter, host=config.LOGHOST, port=config.LOGPORT) + report.appLoggingConfigure(os.path.dirname(__file__), config.LOGTARGET, ((config.APP_NAME, config.LOGLVL), ), fmt=config.formatter, host=config.LOGHOST, port=config.LOGPORT) s = tcp_socket.tcp_server_stp(config.server_ip, port=config.server_port) prot = protocol.my_server_protocol(s, secret=config.secret) while True: diff --git a/protocol b/protocol index 6ac1b58..2ca538c 160000 --- a/protocol +++ b/protocol @@ -1 +1 @@ -Subproject commit 6ac1b584fb53aeb58c1b9809fff306a56dd32400 +Subproject commit 2ca538c49fe141ed356f28bb019c81b1b2d8890b diff --git a/socket_protocol b/socket_protocol index 7c02c8d..35d9f68 160000 --- a/socket_protocol +++ b/socket_protocol @@ -1 +1 @@ -Subproject commit 7c02c8dd3cc5b24a1ba8ce71c0b7396f3759671e +Subproject commit 35d9f688a4f080a8cae70a18e27036b55399edde diff --git a/state_machine b/state_machine index 561b564..db70e14 160000 --- a/state_machine +++ b/state_machine @@ -1 +1 @@ -Subproject commit 561b564b3dc9298936de5b4b51267e56d86ac426 +Subproject commit db70e14d4650c9894ee0ff5c5c6078264ce59b46 diff --git a/stringtools b/stringtools index 76d8ae9..5ac92e2 160000 --- a/stringtools +++ b/stringtools @@ -1 +1 @@ -Subproject commit 76d8ae9b1bfd894bc5f4b830394ce0552120a508 +Subproject commit 5ac92e2b864cd27bd4026352ba9149f4d23ca019