Skip to content

fix(redis): route go-redis internal logs through zap#6132

Merged
kodiakhq[bot] merged 1 commit into
v2from
rd/v2/redis
Jul 9, 2026
Merged

fix(redis): route go-redis internal logs through zap#6132
kodiakhq[bot] merged 1 commit into
v2from
rd/v2/redis

Conversation

@erka

@erka erka commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

go-redis v9 writes connection pool and dial errors to os.Stderr via
Go's standard log package with a "redis: " prefix. Replace the global
logger with a zap adapter so these logs follow the same structured
formatting as the rest of the application.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verdict: approve

Clean, focused change that routes go-redis internal logs through zap as intended. The adapter correctly implements the go-redis logging interface, the tests verify the core behavior, and separating the global side effect from NewStore is a good design choice. No issues found.

🤖 Automated review by the Flipt PR review agent.

@codecov

codecov Bot commented Jul 5, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 62.27%. Comparing base (e4d1013) to head (c2cb265).

Files with missing lines Patch % Lines
internal/cmd/authn.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##               v2    #6132   +/-   ##
=======================================
  Coverage   62.26%   62.27%           
=======================================
  Files         143      144    +1     
  Lines       14733    14738    +5     
=======================================
+ Hits         9174     9178    +4     
- Misses       4813     4814    +1     
  Partials      746      746           
Flag Coverage Δ
integrationtests 33.65% <0.00%> (-0.02%) ⬇️
unittests 53.69% <80.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@erka
erka force-pushed the rd/v2/redis branch 2 times, most recently from b97f9e5 to 6494b63 Compare July 5, 2026 13:00
@erka erka added the v2 Flipt v2 label Jul 5, 2026
@erka
erka marked this pull request as ready for review July 5, 2026 13:18
@erka
erka requested a review from a team as a code owner July 5, 2026 13:18
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jul 5, 2026
go-redis v9 writes connection pool and dial errors to os.Stderr via
Go's standard log package with a "redis: " prefix. Replace the global
logger with a zap adapter so these logs follow the same structured
formatting as the rest of the application.

Signed-off-by: Roman Dmytrenko <[email protected]>
@erka erka added the automerge Used by Kodiak bot to automerge PRs label Jul 9, 2026
@kodiakhq
kodiakhq Bot merged commit cc66536 into v2 Jul 9, 2026
36 of 37 checks passed
@kodiakhq
kodiakhq Bot deleted the rd/v2/redis branch July 9, 2026 14:33
@github-project-automation github-project-automation Bot moved this to Done in Flipt V2 Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Used by Kodiak bot to automerge PRs size:S This PR changes 10-29 lines, ignoring generated files. v2 Flipt v2

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants