From 8d0eb1823d58b6e88fc24b1a1e52c14ff5e18fd4 Mon Sep 17 00:00:00 2001 From: Seth Foster Date: Wed, 5 Aug 2020 10:01:23 -0400 Subject: [PATCH] fix(api): don't stomp other loggers in log config A recent robot-server PR deferred API loading until after the server is up, which is a great change but means that the API-side logging configuration now stomps on the robot server's logging configuration, so robot server messages are not logged. This commit removes the stomping and the robot server's logs should now be visible again. --- api/src/opentrons/util/logging_config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/opentrons/util/logging_config.py b/api/src/opentrons/util/logging_config.py index 956b6c267b7..7d962d7a521 100644 --- a/api/src/opentrons/util/logging_config.py +++ b/api/src/opentrons/util/logging_config.py @@ -11,6 +11,7 @@ def _balena_config(level_value: int) -> Dict[str, Any]: api_log_filename = CONFIG['api_log_file'] return { 'version': 1, + 'disable_existing_loggers': False, 'formatters': { 'basic': { 'format': @@ -68,6 +69,7 @@ def _buildroot_config(level_value: int) -> Dict[str, Any]: # either return { 'version': 1, + 'disable_existing_loggers': False, 'formatters': { 'message_only': { 'format': '%(message)s'