Skip to content

Remove use of fmt.Sprintf of with slog #245

Description

@CDRayn

Description

fmt.Sprintf() is used in combination with calls to the slog package. This is practice is discouraged when using slog. Instead non-static values to include in the log message should be passed to the logger as key value pairs. These uses of fmt.Sprint() and slog must be removed. pkg/rscache/file.go#280 for an instance of this improper usage.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomerstech debtTechnical debt we should address

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions