Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-2405

Fix logs in Main.go

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 0.11.0
    • 0.10.1
    • Operator
    • 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()))
      

            jcarvaja@redhat.com Jose Carvajal Hilario
            jcarvaja@redhat.com Jose Carvajal Hilario
            Karel Suta Karel Suta
            Karel Suta Karel Suta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: