Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

drop logger, use slog #185

Merged
merged 3 commits into from
Jan 16, 2024
Merged

drop logger, use slog #185

merged 3 commits into from
Jan 16, 2024

Conversation

imjasonh
Copy link
Member

@imjasonh imjasonh commented Jan 11, 2024

This uses https://github.com/chainguard-dev/clog for context-aware logging, and log/slog for structured logging.

Some sharp corners:

  • using Hashi's retryablehttp means it logs requests it makes like [DEBUG] HEAD ... -- this PR changes this to use hclog which moves those debug logs to their debug logger, where it's not seen anymore. We should see if we can do this without having to import hclog though.

Signed-off-by: Jason Hall <jason@chainguard.dev>
Signed-off-by: Jason Hall <jason@chainguard.dev>
@imjasonh imjasonh changed the title WIP: drop logger, use slog drop logger, use slog Jan 16, 2024
@imjasonh imjasonh marked this pull request as ready for review January 16, 2024 18:27
Signed-off-by: Jason Hall <jason@chainguard.dev>
@imjasonh imjasonh merged commit 4c76fbe into chainguard-dev:main Jan 16, 2024
3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants