Skip to content

Avoid duplicate handlers in better_logging - #815

Open
hartikainen wants to merge 1 commit into
google:mainfrom
hartikainen:fix-eapp-double-logging
Open

Avoid duplicate handlers in better_logging#815
hartikainen wants to merge 1 commit into
google:mainfrom
hartikainen:fix-eapp-double-logging

Conversation

@hartikainen

@hartikainen hartikainen commented Aug 28, 2026

Copy link
Copy Markdown

eapp.better_logging() currently duplicates each log record because ABSLHandler already delegates to its python_handler. Replace the outer handler with the nested handler so the shorter formatter receives each record once.

Fixes #756.

`eapp.better_logging()` currently duplicates each log record because
`ABSLHandler` already delegates to its `python_handler`. Replace the
outer handler with the nested handler so the shorter formatter receives
each record once.

Fixes google#756.
@hartikainen
hartikainen force-pushed the fix-eapp-double-logging branch from dc815d2 to 884ecad Compare August 28, 2026 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Double logging in eapp.better_logging()

1 participant