@@ -606,7 +606,7 @@ func (api *API) deleteUser(rw http.ResponseWriter, r *http.Request) {
606
606
},
607
607
"api-users-delete" ,
608
608
user .ID ,
609
- );err != nil {
609
+ );err != nil && notifications . IsSeriousEnqueueError ( err ) {
610
610
api .Logger .Warn (ctx ,"unable to notify about deleted user" ,slog .F ("deleted_user" ,user .Username ),slog .Error (err ))
611
611
}
612
612
}
@@ -951,15 +951,15 @@ func (api *API) notifyUserStatusChanged(ctx context.Context, actingUserName stri
951
951
if _ ,err := api .NotificationsEnqueuer .EnqueueWithData (dbauthz .AsNotifier (ctx ),u .ID ,adminTemplateID ,
952
952
labels ,data ,"api-put-user-status" ,
953
953
targetUser .ID ,
954
- );err != nil {
954
+ );err != nil && notifications . IsSeriousEnqueueError ( err ) {
955
955
api .Logger .Warn (ctx ,"unable to notify about changed user's status" ,slog .F ("affected_user" ,targetUser .Username ),slog .Error (err ))
956
956
}
957
957
}
958
958
// nolint:gocritic // Need notifier actor to enqueue notifications
959
959
if _ ,err := api .NotificationsEnqueuer .EnqueueWithData (dbauthz .AsNotifier (ctx ),targetUser .ID ,personalTemplateID ,
960
960
labels ,data ,"api-put-user-status" ,
961
961
targetUser .ID ,
962
- );err != nil {
962
+ );err != nil && notifications . IsSeriousEnqueueError ( err ) {
963
963
api .Logger .Warn (ctx ,"unable to notify user about status change of their account" ,slog .F ("affected_user" ,targetUser .Username ),slog .Error (err ))
964
964
}
965
965
return nil
@@ -1518,7 +1518,7 @@ func (api *API) CreateUser(ctx context.Context, store database.Store, req Create
1518
1518
},
1519
1519
"api-users-create" ,
1520
1520
user .ID ,
1521
- );err != nil {
1521
+ );err != nil && notifications . IsSeriousEnqueueError ( err ) {
1522
1522
api .Logger .Warn (ctx ,"unable to notify about created user" ,slog .F ("created_user" ,user .Username ),slog .Error (err ))
1523
1523
}
1524
1524
}