Skip to content

fix(dgw): reduce log noise for missing recording storage disk#1728

Merged
Benoît Cortier (CBenoit) merged 1 commit intomasterfrom
fix/noisy-logging
Mar 27, 2026
Merged

fix(dgw): reduce log noise for missing recording storage disk#1728
Benoît Cortier (CBenoit) merged 1 commit intomasterfrom
fix/noisy-logging

Conversation

@CBenoit
Copy link
Copy Markdown
Member

When the recording storage disk cannot be found during a heartbeat or preflight check, only the first occurrence is now logged at WARN. Subsequent repeated occurrences are downgraded to DEBUG until the disk becomes available again, at which point the condition can surface at WARN once more. The recording path is included in the log event for context.

Issue: DGW-353

When the recording storage disk cannot be found during a heartbeat or
preflight check, only the first occurrence is now logged at WARN.
Subsequent repeated occurrences are downgraded to DEBUG until the disk
becomes available again, at which point the condition can surface at
WARN once more. The recording path is included in the log event for
context.

Issue: DGW-353
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reduces WARN-level log noise when the recording storage disk cannot be resolved during periodic health checks, while preserving visibility of the initial fault and re-surfacing it after recovery (DGW-353).

Changes:

  • Add a small state machine (NoDiskState) to log the first “disk missing” occurrence at WARN and subsequent repeats at DEBUG until recovery.
  • Include recording_path as structured log context for the “disk missing” event.
  • Add unit tests validating first-occurrence vs repeated-occurrence behavior and recovery re-WARN behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@CBenoit Benoît Cortier (CBenoit) merged commit cceb72b into master Mar 27, 2026
46 checks passed
@CBenoit Benoît Cortier (CBenoit) deleted the fix/noisy-logging branch March 27, 2026 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants