From 0faccfb45686331f5862f15f2281217fd27de691 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 14 Sep 2022 17:35:33 +0200 Subject: [PATCH] better printout --- common.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/common.py b/common.py index aac8ae4..8301d39 100644 --- a/common.py +++ b/common.py @@ -108,13 +108,13 @@ class ExampleCfdpFaultHandler(DefaultFaultHandlerBase): class ExampleCfdpUser(CfdpUserBase): def transaction_indication(self, transaction_id: TransactionId): - pass + LOGGER.info(f"CFDP User: Start of File {transaction_id}") def eof_sent_indication(self, transaction_id: TransactionId): - pass + LOGGER.info(f"CFDP User: EOF sent for {transaction_id}") def transaction_finished_indication(self, params: TransactionFinishedParams): - pass + LOGGER.info(f"CFDP User: {params.transaction_id} finished") def metadata_recv_indication(self, params: MetadataRecvParams): pass @@ -424,7 +424,9 @@ class TcHandler(TcHandlerBase): ): put_req = cfdp_procedure.request_wrapper.to_put_request() put_req.cfg.destination_id = self.cfdp_dest_id - LOGGER.info(f"CFDP: Starting file put request with parameters:\n{put_req}") + LOGGER.info( + f"CFDP: Starting file put request with parameters:\n{put_req}" + ) self.cfdp_in_ccsds_wrapper.handler.put_request(put_req) self.cfdp_handler_started = True (