mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: log warning when context is missing when a user is destroyed (#12182)
This commit is contained in:
@@ -93,6 +93,7 @@ class UserDestroyer
|
||||
deleted_by = @actor
|
||||
end
|
||||
StaffActionLogger.new(deleted_by).log_user_deletion(user, opts.slice(:context))
|
||||
Rails.logger.warn("User destroyed without context from: #{caller_locations(14, 1)[0]}") if opts.slice(:context).blank?
|
||||
end
|
||||
MessageBus.publish "/logout", result.id, user_ids: [result.id]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user