From 726935f77b6fdb8415932d545554f748b5ed1dbb Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 6 Oct 2021 18:00:34 +0200 Subject: [PATCH] set custom logger --- spacepackets | 2 +- tmtc_client_cli.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/spacepackets b/spacepackets index b5068ce..e441c50 160000 --- a/spacepackets +++ b/spacepackets @@ -1 +1 @@ -Subproject commit b5068ceb033b6a857d463d6d91aa8cbdf07913e9 +Subproject commit e441c50809cc18018c57aaf535549f9a2c0b9583 diff --git a/tmtc_client_cli.py b/tmtc_client_cli.py index 3fc7ded..c7cbf6d 100755 --- a/tmtc_client_cli.py +++ b/tmtc_client_cli.py @@ -35,7 +35,9 @@ from pus_tm.factory_hook import ccsds_tm_handler try: from tmtccmd.runner import initialize_tmtc_commander, run_tmtc_commander, add_ccsds_handler from tmtccmd.ccsds.handler import CcsdsTmHandler + from tmtccmd.utility.logger import TMTC_LOGGER_NAME import spacepackets + from spacepackets.log import set_custom_console_logger_name except ImportError as error: run_tmtc_commander = None initialize_tmtc_commander = None @@ -49,6 +51,7 @@ def main(): hook_obj = EiveHookObject() print(f'-- eive tmtc version {__version__} --') print(f'-- spacepackets version {spacepackets.__version__} --') + set_custom_console_logger_name(logger_name=TMTC_LOGGER_NAME) initialize_tmtc_commander(hook_object=hook_obj) ccsds_handler = CcsdsTmHandler() ccsds_handler.add_tm_handler(apid=PUS_APID, pus_tm_handler=ccsds_tm_handler, max_queue_len=50)