Skip to content

Commit

Permalink
fix(api): don't stomp other loggers in log config (#6286)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sfoster1 authored Aug 5, 2020
1 parent 8b1afb0 commit b6d6e18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/src/opentrons/util/logging_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit b6d6e18

Please sign in to comment.