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

logflags: replace logrus with log/slog #3918

Merged
merged 1 commit into from
Feb 18, 2025
Merged

Conversation

aarzilli
Copy link
Member

@aarzilli aarzilli commented Feb 17, 2025

We weren't using most features of logrus and doing this allows us to
drop one external dependency.

The package log/slog was added in Go 1.21 which is already the minimum
version we can build with.

@aarzilli aarzilli marked this pull request as draft February 17, 2025 14:06
@aarzilli
Copy link
Member Author

Made it on top of the deadcode elimination change because both touch dependencies and therefore conflict with eachother anyway.

We weren't using most features of logrus and doing this allows us to
drop one external dependency.
The package log/slog was added in Go 1.21 which is already the minimum
version we can build with.
@aarzilli aarzilli marked this pull request as ready for review February 18, 2025 11:18
Copy link
Member

@derekparker derekparker left a comment

Choose a reason for hiding this comment

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

LGTM

@derekparker derekparker merged commit f261e6d into go-delve:master Feb 18, 2025
2 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