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

Convert lib/automaticupgrades to use slog #50312

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

rosstimothy
Copy link
Contributor

No description provided.

@rosstimothy rosstimothy added the no-changelog Indicates that a PR does not require a changelog entry label Dec 16, 2024
@rosstimothy rosstimothy marked this pull request as ready for review December 16, 2024 21:36
@@ -60,7 +59,7 @@ func IsEnabled() bool {

automaticUpgrades, err := strconv.ParseBool(autoUpgradesEnv)
if err != nil {
log.Warnf("unexpected value for ENV:%s: %v", automaticUpgradesEnvar, err)
slog.WarnContext(context.Background(), "unexpected value for TELEPORT_AUTOMATIC_UPGRADES environment variable", "error", err)
Copy link
Member

Choose a reason for hiding this comment

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

I think it'd be fine to fmt.Sprintf automaticUpgradesEnvar here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The linter disagrees 😅

@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from Joerger December 17, 2024 09:20
@rosstimothy rosstimothy added this pull request to the merge queue Dec 17, 2024
Merged via the queue into master with commit 2071797 Dec 17, 2024
47 checks passed
@rosstimothy rosstimothy deleted the tross/automaticupgrades_slog branch December 17, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants