mirror of
				https://github.com/avatao-content/test-tutorial-framework
				synced 2025-11-04 02:42:56 +00:00 
			
		
		
		
	Import new logger
This commit is contained in:
		@@ -14,9 +14,9 @@ from tfw.components import FSMManagingEventHandler, DirectorySnapshottingEventHa
 | 
				
			|||||||
from tfw.components import FrontendEventHandler, MessageSender
 | 
					from tfw.components import FrontendEventHandler, MessageSender
 | 
				
			||||||
from tfw.config import TFWENV
 | 
					from tfw.config import TFWENV
 | 
				
			||||||
from tao.config import TAOENV
 | 
					from tao.config import TAOENV
 | 
				
			||||||
 | 
					from tfw.config.log import TFWLog
 | 
				
			||||||
 | 
					
 | 
				
			||||||
LOG = logging.getLogger(__name__)
 | 
					LOG = logging.getLogger(__name__)
 | 
				
			||||||
logging.basicConfig(level=logging.DEBUG)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class TerminalCallbackEventHandler(EventHandlerBase):
 | 
					class TerminalCallbackEventHandler(EventHandlerBase):
 | 
				
			||||||
@@ -115,7 +115,8 @@ class MessageFSMStepsEventHandler(FSMAwareEventHandler):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
def main():
 | 
					def main():
 | 
				
			||||||
    # pylint: disable=unused-variable
 | 
					    # pylint: disable=unused-variable
 | 
				
			||||||
    #
 | 
					    TFWLog().start()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # TFW component EventHandlers (builtins, required for their respective functionalities)
 | 
					    # TFW component EventHandlers (builtins, required for their respective functionalities)
 | 
				
			||||||
    fsm = FSMManagingEventHandler(  # TFW FSM
 | 
					    fsm = FSMManagingEventHandler(  # TFW FSM
 | 
				
			||||||
        key='fsm',
 | 
					        key='fsm',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,3 +2,6 @@
 | 
				
			|||||||
user=root
 | 
					user=root
 | 
				
			||||||
directory=%(ENV_TFW_EHMAIN_DIR)s
 | 
					directory=%(ENV_TFW_EHMAIN_DIR)s
 | 
				
			||||||
command=python3 event_handler_main.py
 | 
					command=python3 event_handler_main.py
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[supervisord]
 | 
				
			||||||
 | 
					strip_ansi=false
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user