You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.WithError(err).Error("Failed to convert OIDC Client config to response.")
98
+
log.Extract(ctx).WithError(err).Error("Failed to convert OIDC Client config to response.")
98
99
returnnil, connect.NewError(connect.CodeInternal, fmt.Errorf("Failed to convert OIDC Client Config %s for Organization %s to API response", created.ID.String(), organizationID.String()))
returnnil, connect.NewError(connect.CodeNotFound, fmt.Errorf("OIDC Client Config %s for Organization %s does not exist", clientConfigID.String(), organizationID.String()))
133
132
}
134
133
135
-
logger.WithError(err).Error("Failed to delete OIDC Client config.")
134
+
log.Extract(ctx).WithError(err).Error("Failed to delete OIDC Client config.")
136
135
returnnil, connect.NewError(connect.CodeInternal, fmt.Errorf("Failed to delete OIDC Client Config %s for Organization %s", clientConfigID.String(), organizationID.String()))
logger.WithError(err).Error("Failed to convert OIDC Client config to response.")
140
+
log.Extract(ctx).WithError(err).Error("Failed to convert OIDC Client config to response.")
142
141
returnnil, connect.NewError(connect.CodeInternal, fmt.Errorf("Failed to convert OIDC Client Config %s for Organization %s to API response", clientConfigID.String(), organizationID.String()))
returnnil, connect.NewError(connect.CodeNotFound, fmt.Errorf("OIDC Client Config %s for Organization %s does not exist", clientConfigID.String(), organizationID.String()))
223
220
}
224
221
225
-
logger.WithError(err).Error("Failed to delete OIDC Client config.")
222
+
log.Extract(ctx).WithError(err).Error("Failed to delete OIDC Client config.")
226
223
returnnil, connect.NewError(connect.CodeInternal, fmt.Errorf("Failed to delete OIDC Client Config %s for Organization %s", clientConfigID.String(), organizationID.String()))
227
224
}
228
225
@@ -237,7 +234,7 @@ func (s *OIDCService) getConnection(ctx context.Context) (protocol.APIInterface,
237
234
238
235
conn, err:=s.connectionPool.Get(ctx, token)
239
236
iferr!=nil {
240
-
log.Log.WithError(err).Error("Failed to get connection to server.")
237
+
log.Extract(ctx).WithError(err).Error("Failed to get connection to server.")
241
238
returnnil, connect.NewError(connect.CodeInternal, errors.New("Failed to establish connection to downstream services. If this issue persists, please contact Gitpod Support."))
returnnil, uuid.Nil, connect.NewError(connect.CodePermissionDenied, errors.New("This feature is currently in beta. If you would like to be part of the beta, please contact us."))
log.WithError(err).Warnf("Failed to retreive Teams for user %s, personal access token feature flag will not evaluate team membership.", user.ID)
277
+
log.Extract(ctx).WithError(err).Warnf("Failed to retreive Teams for user %s, personal access token feature flag will not evaluate team membership.", user.ID)
@@ -171,7 +171,7 @@ func (s *ProjectsService) getConnection(ctx context.Context) (protocol.APIInterf
171
171
172
172
conn, err:=s.connectionPool.Get(ctx, token)
173
173
iferr!=nil {
174
-
log.Log.WithError(err).Error("Failed to get connection to server.")
174
+
log.Extract(ctx).WithError(err).Error("Failed to get connection to server.")
175
175
returnnil, connect.NewError(connect.CodeInternal, errors.New("Failed to establish connection to downstream services. If this issue persists, please contact Gitpod Support."))
0 commit comments