Skip to content

Log redis sentinel messages as debug level #1252

Open
maurice2k wants to merge 1 commit into
livekit:mainfrom
maurice2k:fix/redis-sentinel-logging
Open

Log redis sentinel messages as debug level #1252
maurice2k wants to merge 1 commit into
livekit:mainfrom
maurice2k:fix/redis-sentinel-logging

Conversation

@maurice2k

Copy link
Copy Markdown

go-redis writes Sentinel discovery diagnostics to stderr by default. In Egress handler processes, stderr is consumed by HandlerLogger and any unparsed line is emitted as an error, which turns expected parallel Sentinel lookup cancellation into misleading error logs.

Install a go-redis logger backed by the Egress logger so Redis diagnostics keep their own severity. Expected Sentinel discovery chatter is logged at debug while real Redis diagnostics remain visible as warnings.

go-redis writes Sentinel discovery diagnostics to stderr by default. In Egress handler processes, stderr is consumed by HandlerLogger and any unparsed line is emitted as an error, which turns expected parallel Sentinel lookup cancellation into misleading error logs.

Install a go-redis logger backed by the Egress logger so Redis diagnostics keep their own severity. Expected Sentinel discovery chatter is logged at debug while real Redis diagnostics remain visible as warnings.
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