diff --git a/utils/resource/usage.go b/utils/resource/usage.go index 8113db75bda..d5a06d990c8 100644 --- a/utils/resource/usage.go +++ b/utils/resource/usage.go @@ -178,8 +178,9 @@ func (m *manager) update(diskPath string, frequency, cpuHalflife, diskHalflife t availableBytes, getBytesErr := storage.AvailableBytes(diskPath) if getBytesErr != nil { - m.log.Debug("failed to lookup resource", + m.log.Verbo("failed to lookup resource", zap.String("resource", "system disk"), + zap.String("path", diskPath), zap.Error(getBytesErr), ) } @@ -259,7 +260,7 @@ func (p *proc) getActiveUsage(secondsSinceLastUpdate float64) (float64, float64, // assume that the utilization is 0. times, err := p.p.Times() if err != nil { - p.log.Debug("failed to lookup resource", + p.log.Verbo("failed to lookup resource", zap.String("resource", "process CPU"), zap.Int32("pid", p.p.Pid), zap.Error(err), @@ -271,7 +272,7 @@ func (p *proc) getActiveUsage(secondsSinceLastUpdate float64) (float64, float64, // an error on macos. io, err := p.p.IOCounters() if err != nil { - p.log.Debug("failed to lookup resource", + p.log.Verbo("failed to lookup resource", zap.String("resource", "process IO"), zap.Int32("pid", p.p.Pid), zap.Error(err),