From ebdbfeb54a7f07584d351195088ea19d0a3c6e88 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Wed, 1 Mar 2023 06:40:20 +0800 Subject: [PATCH] fix lint error (#30) Reviewed-on: https://gitea.com/gitea/act_runner/pulls/30 Reviewed-by: John Olheiser --- artifactcache/handler.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/artifactcache/handler.go b/artifactcache/handler.go index 6825f0f..7885a9b 100644 --- a/artifactcache/handler.go +++ b/artifactcache/handler.go @@ -29,9 +29,7 @@ const ( urlBase = "/_apis/artifactcache" ) -var ( - logger = log.StandardLogger().WithField("module", "cache_request") -) +var logger = log.StandardLogger().WithField("module", "cache_request") type Handler struct { engine engine @@ -104,7 +102,7 @@ func NewHandler() (*Handler, error) { } go func() { if err := http.Serve(listener, h.router); err != nil { - logger.Error("http serve: %v", err) + logger.Errorf("http serve: %v", err) } }() h.listener = listener