8000 fix(api): add some logs on random 401 (#5003) · ovh/cds@a21e6f5 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit a21e6f5

Browse files
authored
fix(api): add some logs on random 401 (#5003)
1 parent 302b135 commit a21e6f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

engine/api/workflow/execute_node_run.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,6 +1103,10 @@ func getVCSInfos(ctx context.Context, db gorp.SqlExecutor, store cache.Store, pr
11031103
if vcsInfos.Hash != "" && (vcsInfos.Author == "" || vcsInfos.Message == "") {
11041104
commit, errCm := client.Commit(ctx, vcsInfos.Repository, vcsInfos.Hash)
11051105
if errCm != nil {
1106+
// log to debug random 401
1107+
log.Error(ctx, "cannot get commit infos for %s %s - vcsServer.Name:%s vcsServer.Username:%s vcsServer.len-data:%d vcsServer.len-token:%v vcsServer.len-secret:%d vcsServer.created:%v err: %v",
1108+
vcsInfos.Repository, vcsInfos.Hash, vcsServer.Name, vcsServer.Username, len(vcsServer.Data), len(vcsServer.Data["token"]), len(vcsServer.Data["secret"]), vcsServer.Data["created"], errCm)
1109+
11061110
return nil, sdk.WrapError(errCm, "cannot get commit infos for %s %s", vcsInfos.Repository, vcsInfos.Hash)
11071111
}
11081112
vcsInfos.Author = commit.Author.Name

0 commit comments

Comments
 (0)
0