mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2025-06-28 05:25:11 +00:00
Implement custom logging logic
This commit is contained in:
@ -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
|
||||
|
@ -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()
|
||||
|
Reference in New Issue
Block a user