Skip to content

Commit

Permalink
disable forbidigo and adjust logs (#511)
Browse files Browse the repository at this point in the history
* chore: enhance log

* chore: disable forbidigo
  • Loading branch information
CarlJi authored Dec 11, 2024
1 parent 7d2d8bf commit 1d869e4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/linters-config/.golangci.goplus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

1 change: 1 addition & 0 deletions config/linters-config/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion internal/llm/llm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1d869e4

Please sign in to comment.