improve logging
This commit is contained in:
@@ -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")
|
fmt.Fprintf(w, "Processed update event but no config changes were found\n")
|
||||||
} else {
|
} else {
|
||||||
h.Logger.Debug("Received event contains config change info", "source", event.CloudEvent.Source,
|
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)
|
"vm", event.CloudEvent.Data.VM.Name, "user_name", event.CloudEvent.Data.UserName)
|
||||||
|
|
||||||
// Try to decode the config changes data
|
// Try to decode the config changes data
|
||||||
|
Reference in New Issue
Block a user