From 4b2800513a63cdfc28605bed119437cf0ef56a49 Mon Sep 17 00:00:00 2001 From: mitchell Date: Thu, 4 Jan 2024 16:40:49 -0500 Subject: [PATCH] Fixed formatted message value. Use the return value instead of the function value. --- pkg/platform/runtime/artifactcache/artifactcache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/platform/runtime/artifactcache/artifactcache.go b/pkg/platform/runtime/artifactcache/artifactcache.go index 110b650006..da6c96b2cb 100644 --- a/pkg/platform/runtime/artifactcache/artifactcache.go +++ b/pkg/platform/runtime/artifactcache/artifactcache.go @@ -193,7 +193,7 @@ func (cache *ArtifactCache) Save() error { } if cache.timeSpentCopying > 5*time.Second { - multilog.Log(logging.Debug, rollbar.Error)("Spent %.1f seconds copying %.1fMB of artifacts to cache", cache.timeSpentCopying.Seconds, float64(cache.sizeCopied)/float64(MB)) + multilog.Log(logging.Debug, rollbar.Error)("Spent %.1f seconds copying %.1fMB of artifacts to cache", cache.timeSpentCopying.Seconds(), float64(cache.sizeCopied)/float64(MB)) } cache.timeSpentCopying = 0 // reset cache.sizeCopied = 0 //reset