From dc120f2bdc1d7e1aa96a842bb1e3c70ba5e029e9 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Wed, 16 Oct 2024 16:35:37 +1100 Subject: [PATCH] logging --- internal/tasks/monitorVcenter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/tasks/monitorVcenter.go b/internal/tasks/monitorVcenter.go index 2e03f8f..0af5f6e 100644 --- a/internal/tasks/monitorVcenter.go +++ b/internal/tasks/monitorVcenter.go @@ -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 {