Skip to content

fix: prevent duplicate logging on context cancellation - #4

Open
wasim-builds wants to merge 1 commit into
rachelealicek:mainfrom
wasim-builds:fix-duplicate-logs
Open

fix: prevent duplicate logging on context cancellation#4
wasim-builds wants to merge 1 commit into
rachelealicek:mainfrom
wasim-builds:fix-duplicate-logs

Conversation

@wasim-builds

Copy link
Copy Markdown

Fixes #1 by checking if r.Context().Err() == context.Canceled in logger middleware before writing log output. /claim #1

@opirebot

opirebot Bot commented Jul 29, 2026

Copy link
Copy Markdown

😅 Unfortunately there are no rewards left to claim in this issue!

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.

🎯 Prevent Duplicate Log Entries on Request Context Cancellation during Graceful Shutdown

1 participant