diff --git a/config/linters-config/.golangci.goplus.yml b/config/linters-config/.golangci.goplus.yml index 659f1316..42dbcd2f 100644 --- a/config/linters-config/.golangci.goplus.yml +++ b/config/linters-config/.golangci.goplus.yml @@ -100,4 +100,5 @@ linters: - gomoddirectives # superseded by gomodcheck - tagalign # see too many false positives - interfacebloat # seems too arbitrary + - forbidigo # no requirement or necessity to prohibit the use of fmt diff --git a/config/linters-config/.golangci.yml b/config/linters-config/.golangci.yml index c456a7be..39a6b7e3 100644 --- a/config/linters-config/.golangci.yml +++ b/config/linters-config/.golangci.yml @@ -99,3 +99,4 @@ linters: - gomoddirectives # superseded by gomodcheck - tagalign # see too many false positives - interfacebloat # seems too arbitrary + - forbidigo # no requirement or necessity to prohibit the use of fmt diff --git a/internal/llm/llm.go b/internal/llm/llm.go index b8d8d157..84d27bb6 100644 --- a/internal/llm/llm.go +++ b/internal/llm/llm.go @@ -89,8 +89,8 @@ func QueryForReference(ctx context.Context, model llms.Model, linterOutput strin } return "", err } - log.Infof("promote linter output:%s, response:%s", linterOutput, respText) + log.Infof("promote linter output:%s, length of response:%d", linterOutput, len(respText)) return respText, nil } diff --git a/server.go b/server.go index 2bd83875..f58cdacd 100644 --- a/server.go +++ b/server.go @@ -174,7 +174,7 @@ func (s *Server) serveGitLab(w http.ResponseWriter, r *http.Request) { event, err := gitlab.ParseHook(v, payload) if err != nil { - log.Errorf("parse webhook failed: %v", err) + log.Errorf("parse gitlab webhook failed: %v", err) http.Error(w, err.Error(), http.StatusBadRequest) return }