Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: remove log.BBError(err) if nil (#8030)

p0ny1332a76a2f99
diff --git a/backend/plugin/idp/oauth2/oauth2.go b/backend/plugin/idp/oauth2/oauth2.go
index 5632eecea9..90f798be63 100644
--- a/backend/plugin/idp/oauth2/oauth2.go
+++ b/backend/plugin/idp/oauth2/oauth2.go
@@ -118,7 +118,7 @@ func (p *IdentityProvider) UserInfo(token string) (*storepb.IdentityProviderUser
userInfo.Identifier = v
}
if userInfo.Identifier == "" {
- slog.Error("Missing identifier in response body", slog.String("token", token), slog.Any("claims", claims), log.BBError(err))
+ slog.Error("Missing identifier in response body", slog.String("token", token), slog.Any("claims", claims))
return nil, errors.Errorf("the field %q is not found in claims or has empty value", p.config.FieldMapping.Identifier)
}
diff --git a/backend/server/webhook.go b/backend/server/webhook.go
index 41761dea79..38abc05323 100644
--- a/backend/server/webhook.go
+++ b/backend/server/webhook.go
@@ -2094,7 +2094,7 @@ func (s *Server) tryUpdateTasksFromModifiedFile(ctx context.Context, databases [
return nil
}
if issue == nil {
- slog.Error("issue not found by pipeline ID", slog.Int("pipeline ID", task.PipelineID), log.BBError(err))
+ slog.Error("issue not found by pipeline ID", slog.Int("pipeline ID", task.PipelineID))
return nil
}