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

fix: Using log instead of fmt.print #746

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

ii2day
Copy link
Contributor

@ii2day ii2day commented Feb 4, 2024

When I was looking at the source code, I noticed that print was being used here, and I felt it would be better to change it to log output.

@lubronzhan
Copy link
Contributor

Good find. Would you mind also finding and fixing other places using fmt to print log?

On a brief search I find blow places as well

fmt.Println(err)

fmt.Println(cfg)

fmt.Println(cfg)

Thank you

Signed-off-by: ii2day <ii2day.zoro@gmail.com>
@ii2day
Copy link
Contributor Author

ii2day commented Feb 5, 2024

Good find. Would you mind also finding and fixing other places using fmt to print log?

On a brief search I find blow places as well

fmt.Println(err)

fmt.Println(cfg)

fmt.Println(cfg)

Thank you

Okay, I've searched globally and changed the place for fmt.print to log

@lubronzhan
Copy link
Contributor

Thanks. Dan should have the permission to start the test

/ok-to-test

@thebsdbox
Copy link
Collaborator

Nice, once this goes through we should be pretty much ready to do the new release

@ii2day
Copy link
Contributor Author

ii2day commented Feb 6, 2024

Nice, once this goes through we should be pretty much ready to do the new release

🎉 By the way, I've noticed that kube-vip's logging doesn't output the number of log lines, which is annoying for people who aren't familiar with kube-vip's code. Is it considered to improve this log output?

@thebsdbox thebsdbox merged commit a337127 into kube-vip:main Feb 6, 2024
9 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.

None yet

3 participants