Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor!: use slog for logging #190

Merged
merged 1 commit into from
May 20, 2024
Merged

refactor!: use slog for logging #190

merged 1 commit into from
May 20, 2024

Conversation

ericwenn
Copy link
Member

Currently externalclock takes a logr and uses it for some debug
logging. Since log/slog now exists in std library we should use it.

This commit removes logr dependency with using slog directly.
This is a breaking change as the signature for externalclock.New
changes. Previous calls to externalclock.New(logr, time) can safely
drop the logr argument.

@ericwenn ericwenn requested a review from a team as a code owner May 20, 2024 09:38
Currently externalclock takes a logr and uses it for some debug
logging. Since log/slog now exists in std library we should use it.

This commit removes logr dependency with using slog directly.
This is a breaking change as the signature for externalclock.New
changes. Previous calls to `externalclock.New(logr, time)` can safely
drop the `logr` argument.
Copy link
Member

@maxekman maxekman left a comment

Choose a reason for hiding this comment

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

Good stuff, a breaking change here is no problem IMO

@ericwenn ericwenn merged commit c2e78cc into master May 20, 2024
1 check passed
@ericwenn ericwenn deleted the slog branch May 20, 2024 11:35
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.

3 participants