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

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

Open
zroubalik opened this issue Apr 23, 2024 · 3 comments · May be fixed by #5794
Open

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

zroubalik opened this issue Apr 23, 2024 · 3 comments · May be fixed by #5794
Assignees
Labels
feature-request All issues for new features that have not been committed to good first issue Good for newcomers needs-discussion

Comments

@zroubalik
Copy link
Member

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

@zroubalik zroubalik added good first issue Good for newcomers needs-discussion feature-request All issues for new features that have not been committed to labels Apr 23, 2024
@JorTurFer
Copy link
Member

I think that it's a good moment to unify all the loggers across components, operator uses zap IIRC, maybe can give a try but I think that custom-metrics-apiserver can be the blocker here

@guopeng0
Copy link
Contributor

Hi @zroubalik , I would like to work on this issue can you please assign it to me.

@zroubalik
Copy link
Member Author

@guopeng0 thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request All issues for new features that have not been committed to good first issue Good for newcomers needs-discussion
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants