logging
This commit is contained in:
@@ -225,7 +225,7 @@ func (c *CronTask) UpdateVmInventory(vmObj *mo.VirtualMachine, vc *vcenter.Vcent
|
|||||||
params.UpdateType = updateType
|
params.UpdateType = updateType
|
||||||
updateTime := time.Now().Unix()
|
updateTime := time.Now().Unix()
|
||||||
params.UpdateTime = sql.NullInt64{Int64: updateTime, Valid: updateTime > 0}
|
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)
|
result, err := c.Database.Queries().CreateUpdate(ctx, params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user