-
Bug
-
Resolution: Done
-
Minor
-
0.10.1
-
2020 Week 22-24 (from May 25)
This ticket is about to fix the logs such as:
log.Info("Could not create ServiceMonitor object", "error", err.Error())
The above command produces:
{"level":"info","T":"2020-06-09T08:42:12.838Z","logger":"cmd","msg":"Could not create ServiceMonitor objecterrorno ServiceMonitor registered with the API"}
Which is not correct.
The above commands only occur in the Main.go. The rest of scripts are ok.
I think the solution would be to change all the commands from above to:
log.Info(fmt.Sprintf("Could not create ServiceMonitor object: %v", err.Error()))