From 096bba83670694f1bf2b0e194623fc8c67057aa1 Mon Sep 17 00:00:00 2001 From: "R. Richard" Date: Tue, 18 Jun 2019 18:51:05 +0200 Subject: [PATCH] Import new logger --- solvable/src/event_handler_main.py | 5 +++-- solvable/supervisor/event_handler_main.conf | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/solvable/src/event_handler_main.py b/solvable/src/event_handler_main.py index 9d48fd6..16bdd81 100644 --- a/solvable/src/event_handler_main.py +++ b/solvable/src/event_handler_main.py @@ -14,9 +14,9 @@ from tfw.components import FSMManagingEventHandler, DirectorySnapshottingEventHa from tfw.components import FrontendEventHandler, MessageSender from tfw.config import TFWENV from tao.config import TAOENV +from tfw.config.log import TFWLog LOG = logging.getLogger(__name__) -logging.basicConfig(level=logging.DEBUG) class TerminalCallbackEventHandler(EventHandlerBase): @@ -115,7 +115,8 @@ class MessageFSMStepsEventHandler(FSMAwareEventHandler): def main(): # pylint: disable=unused-variable - # + TFWLog().start() + # TFW component EventHandlers (builtins, required for their respective functionalities) fsm = FSMManagingEventHandler( # TFW FSM key='fsm', diff --git a/solvable/supervisor/event_handler_main.conf b/solvable/supervisor/event_handler_main.conf index 021e13c..2d89a79 100644 --- a/solvable/supervisor/event_handler_main.conf +++ b/solvable/supervisor/event_handler_main.conf @@ -2,3 +2,6 @@ user=root directory=%(ENV_TFW_EHMAIN_DIR)s command=python3 event_handler_main.py + +[supervisord] +strip_ansi=false