Skip to content

Commit

Permalink
fix(logger): unset CORVA_LOGGER.propagate = False for OTel Log Send…
Browse files Browse the repository at this point in the history
  • Loading branch information
smoke committed Nov 6, 2024
1 parent f0125c1 commit ae4420d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/corva/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@

CORVA_LOGGER = logging.getLogger('corva')
CORVA_LOGGER.setLevel(SETTINGS.LOG_LEVEL)
CORVA_LOGGER.propagate = False # do not pass messages to ancestor loggers

# unset to pass messages to ancestor loggers, including OTel Log Sending handler
# see https://github.com/corva-ai/otel/pull/37
# see https://corvaqa.atlassian.net/browse/EE-31
#CORVA_LOGGER.propagate = False


def get_formatter(
Expand Down

0 comments on commit ae4420d

Please sign in to comment.