log in file logger as well

This commit is contained in:
Robin Müller 2022-07-28 15:26:37 +02:00
parent 99165298d4
commit 9dedcd4e4f
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
1 changed files with 3 additions and 1 deletions

View File

@ -125,7 +125,9 @@ class TcHandler(TcHandlerBase):
if params.entry.entry_type == TcQueueEntryType.PUS_TC:
self.handle_tc_send_cb(params)
elif params.entry.entry_type == TcQueueEntryType.LOG:
LOGGER.info(params.entry.to_log_entry().log_str)
log_entry = params.entry.to_log_entry()
LOGGER.info(log_entry.log_str)
self.file_logger.info(log_entry.log_str)
def handle_tc_send_cb(self, params: SendCbParams):
pus_tc_wrapper = params.entry.to_pus_tc_entry()