Implement custom logging logic

This commit is contained in:
R. Richard
2019-06-18 18:43:02 +02:00
committed by Kristóf Tóth
parent 85c720127e
commit 8bf18113b2
3 changed files with 119 additions and 5 deletions

View File

@ -1,4 +1,4 @@
[program:tfwserver]
user=root
directory=%(ENV_TFW_SERVER_DIR)s
command=python3 tfw_server.py
command=python3 -u tfw_server.py

View File

@ -1,12 +1,10 @@
import logging
from tornado.ioloop import IOLoop
from tfw.config.log import TFWLog
from tfw.server import TFWServer
logging.basicConfig(level=logging.DEBUG)
if __name__ == '__main__':
TFWLog().start()
TFWServer().listen()
IOLoop.instance().start()