Skip to content

Metrics Server: klogr.New is deprecated use textlogger.NewLogger instead #5732

Closed
@zroubalik

Description

@zroubalik

Proposal

var logger = klogr.New().WithName("keda_metrics_adapter")

cmd/adapter/main.go:58:14: SA1019: klogr.New is deprecated: this uses a custom, out-dated output format. Use textlogger.NewLogger instead. (staticcheck)
var logger = klogr.New().WithName("keda_metrics_adapter")

Let's migrate to the new interface, there might be some changes in the config/parameters etc.

It might also help with issues like: #5139

Use-Case

No response

Is this a feature you are interested in implementing yourself?

Maybe

Anything else?

No response

Metadata

Metadata

Assignees

Labels

feature-requestAll issues for new features that have not been committed togood first issueGood for newcomersneeds-discussionstaleAll issues that are marked as stale due to inactivity

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions