From c8253b4022574407e13ff97362f4f4d38231de96 Mon Sep 17 00:00:00 2001 From: Bodong Yang Date: Thu, 16 May 2024 05:33:03 +0000 Subject: [PATCH] otaclient.app: print out ecu_info.yaml on otaclient starts up --- otaclient/app/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/otaclient/app/main.py b/otaclient/app/main.py index 561e72296..4e89025f8 100644 --- a/otaclient/app/main.py +++ b/otaclient/app/main.py @@ -22,7 +22,7 @@ from otaclient import __version__ # type: ignore from .common import read_str_from_file, write_str_to_file_sync -from .configs import config as cfg +from .configs import config as cfg, ecu_info from .log_setting import configure_logging from .ota_client_service import launch_otaclient_grpc_server from .proto import ota_metafiles, v2, v2_grpc, wrapper # noqa: F401 @@ -54,6 +54,7 @@ def _check_other_otaclient(): def main(): logger.info("started") logger.info(f"otaclient version: {__version__}") + logger.info(f"ecu_info.yaml: \n{ecu_info}") # start the otaclient grpc server _check_other_otaclient()