Module update and loglevel to config
This commit is contained in:
parent
17baf26fbd
commit
2eb8a99c4b
@ -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
|
||||
|
2
leyk.py
2
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:
|
||||
|
2
protocol
2
protocol
@ -1 +1 @@
|
||||
Subproject commit 6ac1b584fb53aeb58c1b9809fff306a56dd32400
|
||||
Subproject commit 2ca538c49fe141ed356f28bb019c81b1b2d8890b
|
@ -1 +1 @@
|
||||
Subproject commit 7c02c8dd3cc5b24a1ba8ce71c0b7396f3759671e
|
||||
Subproject commit 35d9f688a4f080a8cae70a18e27036b55399edde
|
@ -1 +1 @@
|
||||
Subproject commit 561b564b3dc9298936de5b4b51267e56d86ac426
|
||||
Subproject commit db70e14d4650c9894ee0ff5c5c6078264ce59b46
|
@ -1 +1 @@
|
||||
Subproject commit 76d8ae9b1bfd894bc5f4b830394ce0552120a508
|
||||
Subproject commit 5ac92e2b864cd27bd4026352ba9149f4d23ca019
|
Loading…
x
Reference in New Issue
Block a user