From 4f830178ed210886c54770f46082e2006599ca27 Mon Sep 17 00:00:00 2001 From: Bodong Yang <86948717+Bodong-Yang@users.noreply.github.com> Date: Fri, 20 Dec 2024 12:58:37 +0900 Subject: [PATCH] chore: logging the firmware_version of current active_slot and proxy_info.yaml on startup (#463) --- src/otaclient/main.py | 1 + src/otaclient/ota_core.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/otaclient/main.py b/src/otaclient/main.py index cecb4391c..2b9c15306 100644 --- a/src/otaclient/main.py +++ b/src/otaclient/main.py @@ -91,6 +91,7 @@ def main() -> None: # pragma: no cover logger.info("started") logger.info(f"otaclient version: {__version__}") logger.info(f"ecu_info.yaml: \n{ecu_info}") + logger.info(f"proxy_info.yaml: \n{proxy_info}") check_other_otaclient(cfg.OTACLIENT_PID_FILE) create_otaclient_rundir(cfg.RUN_DIR) diff --git a/src/otaclient/ota_core.py b/src/otaclient/ota_core.py index 78cb25f9b..203f719c1 100644 --- a/src/otaclient/ota_core.py +++ b/src/otaclient/ota_core.py @@ -703,6 +703,7 @@ def __init__( self.started = True logger.info("otaclient started") + logger.info(f"firmware_version: {self.current_version}") def _on_failure( self,