From b7c44f3e985aa98a750b62b90b067dbf6061bc9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20M=C3=B8ller?= Date: Fri, 10 Nov 2023 10:39:30 -0800 Subject: [PATCH] Set default log level to info, to eliminate chatter from python runner (#23) --- app/core/config.py | 2 +- app/otbr_manager/otbr_manager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/core/config.py b/app/core/config.py index ce41af1a..c6dd5ee5 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -90,7 +90,7 @@ def get_emails_enabled(cls, v: bool, values: Dict[str, Any]) -> bool: # Logging LOGGING_PATH: str = "./logs" LOGGING_FILENAME: str = "{time:YYYY-MM-DD}.log" - LOGGING_LEVEL: str = "debug" + LOGGING_LEVEL: str = "info" LOGGING_ROTATION: str = "20 days" LOGGING_RETENTION: str = "1 months" LOGGING_FORMAT: str = ( diff --git a/app/otbr_manager/otbr_manager.py b/app/otbr_manager/otbr_manager.py index dd8c0cc9..7e25274c 100644 --- a/app/otbr_manager/otbr_manager.py +++ b/app/otbr_manager/otbr_manager.py @@ -142,7 +142,7 @@ async def start_device(self, config: ThreadAutoConfig) -> bool: except (asyncio.exceptions.TimeoutError, ThreadBorderRouterError): err_msg = "Border router does not start properly for " + self.__docker_image - logger.debug(self.__otbr_docker.logs().decode("utf-8")) + logger.warning(self.__otbr_docker.logs().decode("utf-8")) logger.error(err_msg) self.destroy_device() raise ThreadBorderRouterError(err_msg)