logging
This commit is contained in:
1 parent
c8ae94fb43
commit
dc120f2bdc
1 file changed
+1
-1
@@ -225,7 +225,7 @@ func (c *CronTask) UpdateVmInventory(vmObj *mo.VirtualMachine, vc *vcenter.Vcent
|
||||
params.UpdateType = updateType
|
||||
updateTime := time.Now().Unix()
|
||||
params.UpdateTime = sql.NullInt64{Int64: updateTime, Valid: updateTime > 0}
|
||||
c.Logger.Debug("Detected new change in VM, inserting update record into database", "update_type", updateType, "params", params)
|
||||
c.Logger.Info("Detected new change in VM, inserting update record into database", "update_type", updateType, "params", params)
|
||||
|
||||
result, err := c.Database.Queries().CreateUpdate(ctx, params)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user