Skip to content
Snippets Groups Projects
Commit c98bf7ca authored by Olivier Campeau's avatar Olivier Campeau
Browse files

add logs

parent 184f295d
No related merge requests found
......@@ -196,11 +196,13 @@ func (g *GenerationManager) SignedURL(ctx context.Context, repo storage.Reposito
func (g *GenerationManager) UploadPackGitConfig(ctx context.Context, repo storage.Repository) []gitcmd.ConfigPair {
uri, err := g.SignedURL(ctx, repo)
if err != nil {
g.logger.WithError(err).Error("signed url error")
if st, ok := status.FromError(err); !ok || st.Code() != codes.NotFound {
g.logger.WithField("bundle_uri_error", err)
}
return CapabilitiesGitConfig(ctx, false)
}
g.logger.Info(fmt.Sprintf("signed url no error, uri: %s", uri))
return UploadPackGitConfig(ctx, uri)
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment