Skip to content

[Backport 2.33-maintenance] Don't throw Interrupted from JSONLogger::write#15338

Merged
internal-nix-ci[bot] merged 2 commits into2.33-maintenancefrom
backport-15335-to-2.33-maintenance
Feb 25, 2026
Merged

[Backport 2.33-maintenance] Don't throw Interrupted from JSONLogger::write#15338
internal-nix-ci[bot] merged 2 commits into2.33-maintenancefrom
backport-15335-to-2.33-maintenance

Conversation

@internal-nix-ci
Copy link

Automatic backport to 2.33-maintenance, triggered by a label in #15335.

Generalize writeToStderr into writeFullLogging, with similar behavior
but taking an arbitrary fd, and reimplement writeToStderr with it as a
convenient wrapper.

(cherry picked from commit 473d54e)
Logging should not check for interrupts. Use the new writeFullLogging
function to write JSON output to get similar behavior to SimpleLogger.

This avoids the logger itself throwing Interrupted exceptions in
handleExceptions.

(cherry picked from commit 1210100)
@internal-nix-ci internal-nix-ci bot requested a review from edolstra as a code owner February 25, 2026 19:53
@internal-nix-ci internal-nix-ci bot enabled auto-merge February 25, 2026 19:53
@internal-nix-ci internal-nix-ci bot merged commit a35595c into 2.33-maintenance Feb 25, 2026
19 checks passed
@internal-nix-ci internal-nix-ci bot deleted the backport-15335-to-2.33-maintenance branch February 25, 2026 20:40
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.

1 participant