improve logging
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-09-26 21:29:42 +10:00
parent f88b812fa9
commit 54ff68590c

View File

@@ -55,6 +55,7 @@ func (h *Handler) VmModifyEvent(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Processed update event but no config changes were found\n")
} else {
h.Logger.Debug("Received event contains config change info", "source", event.CloudEvent.Source,
"chain_id", event.CloudEvent.Data.ChainID,
"vm", event.CloudEvent.Data.VM.Name, "user_name", event.CloudEvent.Data.UserName)
// Try to decode the config changes data