Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(api): add some logs on random 401 #5003

Merged
merged 2 commits into from
Feb 25, 2020
Merged

fix(api): add some logs on random 401 #5003

merged 2 commits into from
Feb 25, 2020

Conversation

yesnault
Copy link
Member

Signed-off-by: Yvonnick Esnault [email protected]

@@ -1103,6 +1103,10 @@ func getVCSInfos(ctx context.Context, db gorp.SqlExecutor, store cache.Store, pr
if vcsInfos.Hash != "" && (vcsInfos.Author == "" || vcsInfos.Message == "") {
commit, errCm := client.Commit(ctx, vcsInfos.Repository, vcsInfos.Hash)
if errCm != nil {
// log to debug random 401
log.Error(ctx, "cannot get commit infos for %s %s - data:%d vcsServer.Name:%s vcsServer.Username:%s vcsServer.len-data:%d vcsServer.len-token:%v vcsServer.len-secret:%d vcsServer.created:%v err: %v",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

printf: Error format %d has arg vcsServer.Name of wrong type string (from govet)

Signed-off-by: Yvonnick Esnault <[email protected]>
@richardlt richardlt merged commit a21e6f5 into master Feb 25, 2020
@yesnault yesnault deleted the ye-log-debug-401 branch March 1, 2020 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants