mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-14 17:47:17 +00:00
19 lines
445 B
Python
19 lines
445 B
Python
from sys import stderr
|
|
|
|
from tornado.ioloop import IOLoop
|
|
|
|
from tfw.main import TFWServer, setup_signal_handlers
|
|
from tfw.config import TFWENV
|
|
from tfw.logging import Log, Logger, LogFormatter, VerboseLogFormatter
|
|
|
|
|
|
if __name__ == '__main__':
|
|
Logger([
|
|
Log(stderr, LogFormatter(20)),
|
|
Log(TFWENV.LOGFILE, VerboseLogFormatter())
|
|
]).start()
|
|
TFWServer().listen()
|
|
|
|
setup_signal_handlers()
|
|
IOLoop.instance().start()
|