feat: Refine The Atlantis VCS Logging Configuration (#4285)

* Refine VCS Logging

* Remove github/gitlab client logger

* Remove fmtLogSrc from instrumented_client and format

* Add staticcheck lint exception for NewGitHubClient

* Fix tests
This commit is contained in:
Simon Heather
2024-02-26 18:07:41 +00:00
committed by GitHub
parent 0c99a3dbba
commit 67b5740053
60 changed files with 1508 additions and 1179 deletions

View File

@@ -197,7 +197,7 @@ func (a *APIController) apiParseAndValidate(r *http.Request) (*APIRequest, *comm
if err != nil {
return nil, nil, http.StatusBadRequest, err
}
cloneURL, err := a.VCSClient.GetCloneURL(VCSHostType, request.Repository)
cloneURL, err := a.VCSClient.GetCloneURL(a.Logger, VCSHostType, request.Repository)
if err != nil {
return nil, nil, http.StatusInternalServerError, err
}