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

Remove unused KeyValue pair to fix wrong logging #431

Merged
merged 1 commit into from
Jan 5, 2022

Conversation

luhi-DT
Copy link
Collaborator

@luhi-DT luhi-DT commented Jan 5, 2022

If the operator had problems and crashed, the exitOnError() method is called. The method had a KeyValue pair as an parameter, but what happend was, that if nothing was passed for that parameter, log.Error() was called with nil value, which caused the Logger to panic, because it only had a single item (nil) as KeyValuePair. Parameter was unused so I just removed it.

@luhi-DT luhi-DT added the bug Something isn't working label Jan 5, 2022
@luhi-DT luhi-DT merged commit 31208c2 into master Jan 5, 2022
@luhi-DT luhi-DT deleted the bugfix/fix-logs-on-error-exit branch January 5, 2022 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants