logging adjustments
Some checks are pending
CI / Lint (push) Waiting to run
CI / Test (push) Waiting to run
CI / End-to-End (push) Waiting to run
CI / Publish Docker (push) Blocked by required conditions
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-10-16 16:34:30 +11:00
parent b46369811b
commit c8ae94fb43
3 changed files with 7 additions and 5 deletions

View File

@@ -67,7 +67,7 @@ func (h *Handler) VmModifyEvent(w http.ResponseWriter, r *http.Request) {
})
return
} else {
h.Logger.Debug("Received event contains config change info", "source", event.CloudEvent.Source,
h.Logger.Info("Received event contains config change info", "source", event.CloudEvent.Source,
"id", event.CloudEvent.ID,
"vm", event.CloudEvent.Data.VM.Name, "user_name", event.CloudEvent.Data.UserName)
@@ -76,7 +76,7 @@ func (h *Handler) VmModifyEvent(w http.ResponseWriter, r *http.Request) {
if err := json.Unmarshal(*event.CloudEvent.Data.ConfigSpec, &testConfig); err != nil {
h.Logger.Warn("unable to decode ConfigSpec json", "error", err)
} else {
h.Logger.Debug("successfully decoded ConfigSpec JSON")
//h.Logger.Debug("successfully decoded ConfigSpec JSON")
}
configChanges = h.processConfigChanges(event.CloudEvent.Data.ConfigChanges.Modified)