diff --git a/lib/autoupdate/agent/logger.go b/lib/autoupdate/agent/logger.go index 5c8ad4d774eae..bd50ee50859a4 100644 --- a/lib/autoupdate/agent/logger.go +++ b/lib/autoupdate/agent/logger.go @@ -47,7 +47,7 @@ func (w *progressLogger) Write(p []byte) (n int, err error) { w.n += len(p) if w.n >= w.max*(w.l+1)/w.lines { w.log.Log(w.ctx, w.level, "Downloading", - "name", w.name, + "file", w.name, "progress", fmt.Sprintf("%d%%", w.n*100/w.max), ) w.l++ diff --git a/lib/autoupdate/agent/logger_test.go b/lib/autoupdate/agent/logger_test.go index a8166db7d5c42..2a8430ef8cf44 100644 --- a/lib/autoupdate/agent/logger_test.go +++ b/lib/autoupdate/agent/logger_test.go @@ -177,7 +177,7 @@ func TestProgressLogger(t *testing.T) { v, err := io.ReadAll(out) require.NoError(t, err) if len(v) > 0 { - e.out = fmt.Sprintf(`msg=Downloading name=test progress=%s`+"\n", e.out) + e.out = fmt.Sprintf(`msg=Downloading file=test progress=%s`+"\n", e.out) } require.Equal(t, e.out, string(v)) }