reduce some logging
This commit is contained in:
@@ -112,6 +112,8 @@ func (h *Handler) VmModifyEvent(w http.ResponseWriter, r *http.Request) {
|
||||
params.PlaceholderChange = sql.NullString{String: "placeholderVm", Valid: true}
|
||||
} else if change["newValue"] == "<unset>" {
|
||||
params.PlaceholderChange = sql.NullString{String: "Vm", Valid: true}
|
||||
} else if change["newValue"] == "testVm" {
|
||||
params.PlaceholderChange = sql.NullString{String: "testVm", Valid: true}
|
||||
} else {
|
||||
h.Logger.Error("Unexpected value for managedBy configuration", "new_value", change["newValue"])
|
||||
}
|
||||
@@ -121,7 +123,15 @@ func (h *Handler) VmModifyEvent(w http.ResponseWriter, r *http.Request) {
|
||||
// [map[newValue:\"placeholderVm\" type:config.managedBy.type]
|
||||
// map[newValue:<unset> type:config.managedBy]
|
||||
|
||||
// config.managedBy.type: "testVm" -> "placeholderVm"
|
||||
|
||||
// TODO - track when this happens, maybe need a new database column?
|
||||
case "config.managedBy.type":
|
||||
h.Logger.Debug("config.managedBy.type")
|
||||
if change["newValue"] == "testVm" {
|
||||
h.Logger.Debug("testVm")
|
||||
params.PlaceholderChange = sql.NullString{String: "testVm", Valid: true}
|
||||
}
|
||||
}
|
||||
|
||||
// Check if a disk was added (or maybe removed?)
|
||||
|
Reference in New Issue
Block a user