Skip to content

Fix logging more frequent than log_period#3962

Open
cbility wants to merge 1 commit into
dlt-hub:develfrom
cbility:fix-log-period-control
Open

Fix logging more frequent than log_period#3962
cbility wants to merge 1 commit into
dlt-hub:develfrom
cbility:fix-log-period-control

Conversation

@cbility

@cbility cbility commented May 21, 2026

Copy link
Copy Markdown

Remove line that resets last_log_time whenever a counter is added to the log collector.

This line causes a log to be emitted every time a line is added to the log message, which can result in far more frequent logs than the max specified by log_period.

Description

Related Issues

Additional Context

Tested in my dlt project and it fixes the logging issue. Logs are emitted at the specified frequency, except for when changing stages e.g. extract to load, when they can be more frequent.

…the log collector

This line causes a log to be emitted every time a line is added to the log message, which can result in far more frequent logs than the max specified by log_period
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.

log_period argument in dlt.progress.log seems to have no effect in version 1.9

1 participant