1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-11-14 21:37:17 +00:00

Merge pull request #15 from avatao-content/logging

Import the logging module directly
This commit is contained in:
therealkrispet 2019-06-11 11:33:16 +02:00 committed by GitHub
commit 3ff95cf2de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,4 @@
import logging
from ast import literal_eval
from functools import partial
from signal import signal, SIGTERM, SIGINT
@ -12,10 +13,10 @@ from tfw.components import TerminalCommands, LogMonitoringEventHandler
from tfw.components import FSMManagingEventHandler, DirectorySnapshottingEventHandler
from tfw.components import FrontendEventHandler, MessageSender
from tfw.config import TFWENV
from tfw.config.logs import logging
from tao.config import TAOENV
LOG = logging.getLogger(__name__)
logging.basicConfig(level=logging.DEBUG)
def cenator(history):

View File

@ -1,3 +1,4 @@
import logging
from signal import signal, SIGTERM, SIGINT
from tornado.ioloop import IOLoop
@ -5,6 +6,8 @@ from tornado.ioloop import IOLoop
from tfw.event_handlers import EventHandlerBase
from tfw.components import PipeIOEventHandler
logging.basicConfig(level=logging.DEBUG)
if __name__ == '__main__':
pipe_io = PipeIOEventHandler(