Skip to content

Commit ad701cd

Browse files
Fix the test coverage
Signed-off-by: Łukasz Gryglicki <lgryglicki@cncf.io>
1 parent 3d19ae0 commit ad701cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cla-backend-go/v2/project/handlers.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ func Configure(api *operations.EasyclaAPI, service v1Project.Service, v2Service
352352
if err.Error() == "project does not exist" {
353353
return project.NewGetProjectCompatNotFound().WithXRequestID(reqID).WithPayload(errorResponse(reqID, err))
354354
}
355-
log.WithFields(f).WithError(err).Warnf("unable to load compat project by ID: %s", params.ProjectID)
355+
log.WithFields(f).WithError(err).Warnf("unable to load compat project by ID: %s: %+v", params.ProjectID, err)
356356
return project.NewGetProjectCompatBadRequest().WithXRequestID(reqID).WithPayload(errorResponse(reqID, err))
357357
}
358358
if proj == nil {
@@ -374,11 +374,11 @@ func Configure(api *operations.EasyclaAPI, service v1Project.Service, v2Service
374374
}
375375
repos, reposErr := v2RepositoriesService.GetRepositoriesByProjectSFID(ctx, sfid)
376376
if reposErr != nil {
377-
log.WithFields(f).WithError(err).Warnf("unable to get github/gitlab repos list for SFID: %s: %+v", sfid, reposErr)
377+
log.WithFields(f).WithError(reposErr).Warnf("unable to get github/gitlab repos list for SFID: %s: %+v", sfid, reposErr)
378378
}
379379
gerrits, gerritsErr := gerritService.GetGerritsByProjectSFID(ctx, sfid)
380380
if gerritsErr != nil {
381-
log.WithFields(f).WithError(err).Warnf("unable to get gerrit repos list for SFID: %s", sfid, gerritsErr)
381+
log.WithFields(f).WithError(gerritsErr).Warnf("unable to get gerrit repos list for SFID: %s: %+v", sfid, gerritsErr)
382382
}
383383
entry := [][2]string{}
384384
if reposErr == nil {

0 commit comments

Comments
 (0)