Skip to content

Fix retryablehttp logging adapter for docker/quay clients#440

Merged
davidcollom merged 1 commit into
jetstack:mainfrom
camh-:fix-debug-logging
Jun 5, 2026
Merged

Fix retryablehttp logging adapter for docker/quay clients#440
davidcollom merged 1 commit into
jetstack:mainfrom
camh-:fix-debug-logging

Conversation

@camh-
Copy link
Copy Markdown
Contributor

@camh- camh- commented Jun 3, 2026

Fix the adapter that hooks retryablehttp into the logger version-checker
uses by passing a pointer to a leveledlogger, so that configured log
levels are honoured.

The adapter was added in b6ae308 (Track Kubernetes Channels for
latest versions) and used correctly there, but the docker and quay
clients pass a non-pointer leveledlogger to retryablehttp. Its methods
have pointer receivers, so they are not in the value's method set and it
does not satisfy retryablehttp's LeveledLogger interface. retryablehttp
then falls back to the Printf-based Logger, which logs at info level
regardless of the configured level.

Fix the adapter that hooks retryablehttp into the logger version-checker
uses by passing a pointer to a leveledlogger, so that configured log
levels are honoured.

The adapter was added in b6ae308 (Track Kubernetes Channels for
latest versions) and used correctly there, but the docker and quay
clients pass a non-pointer leveledlogger to retryablehttp. Its methods
have pointer receivers, so they are not in the value's method set and it
does not satisfy retryablehttp's LeveledLogger interface. retryablehttp
then falls back to the Printf-based Logger, which logs at info level
regardless of the configured level.
@davidcollom davidcollom merged commit fd144c5 into jetstack:main Jun 5, 2026
5 of 7 checks passed
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.

2 participants