From 8b04bc047791f87da7e72f249cbf89dc9f75ced6 Mon Sep 17 00:00:00 2001 From: "R. Richard" Date: Mon, 10 Jun 2019 15:35:09 +0200 Subject: [PATCH 1/2] Import the logging module directly --- solvable/src/event_handler_main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/solvable/src/event_handler_main.py b/solvable/src/event_handler_main.py index 1e9ea96..5654713 100644 --- a/solvable/src/event_handler_main.py +++ b/solvable/src/event_handler_main.py @@ -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): From 6b14cd0caeed5a5acdfc4002feb3ed5dbe8d7925 Mon Sep 17 00:00:00 2001 From: "R. Richard" Date: Tue, 11 Jun 2019 11:32:46 +0200 Subject: [PATCH 2/2] Configure loggging in pipe_io_main(), too --- solvable/src/pipe_io_main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/solvable/src/pipe_io_main.py b/solvable/src/pipe_io_main.py index d750d5b..ca6bb45 100644 --- a/solvable/src/pipe_io_main.py +++ b/solvable/src/pipe_io_main.py @@ -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(