Skip to content

Commit

Permalink
fix: odd number of arguments (#1594)
Browse files Browse the repository at this point in the history
For now, exitOnError without keysAndValues, will cause panic: odd number of arguments passed as key-value pairs for logging. It is noisily.

Co-authored-by: wuhua.ck <[email protected]>
  • Loading branch information
chenk008 and wuhua.ck authored Nov 2, 2023
1 parent 244003b commit fa8cecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ray-operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func cacheSelectors() (cache.SelectorsByObject, error) {

func exitOnError(err error, msg string, keysAndValues ...interface{}) {
if err != nil {
setupLog.Error(err, msg, keysAndValues)
setupLog.Error(err, msg, keysAndValues...)
os.Exit(1)
}
}

0 comments on commit fa8cecb

Please sign in to comment.