Compare commits

...

2 commits

Author SHA1 Message Date
Ruben van de Ven
b9196db157 Merge branch 'master' of gitlab.com:hugvey/hugvey 2020-02-25 17:15:20 +03:00
Hugvey Central Command
fe4836673d hugvey 2020-02-22 21:02:48 +01:00
2 changed files with 3 additions and 2 deletions

View file

@ -41,6 +41,7 @@ if __name__ == '__main__':
rootLogger = logging.getLogger()
logger = logging.getLogger("hugvey")
logger.setLevel(logging.DEBUG)
logFileHandler = logging.handlers.RotatingFileHandler(
'./state/server.log',
@ -57,7 +58,7 @@ if __name__ == '__main__':
# logger.setLevel(1) # to send all records to cutelog
socket_handler = logging.handlers.SocketHandler('127.0.0.1', 19996) # default listening address
socket_handler.setLevel(logging.DEBUG) # OR should it be DEBUG? chaned to see difference in logging speed
socket_handler.setLevel(logging.INFO) # In DEBUG the system cnnot keeop up and items start to move together
rootLogger.addHandler(socket_handler)
logger.info("Start server")