DEV: Rescue from ActiveRecord::Readonly error in lograge.
This commit is contained in:
parent
9c7d3b2dc0
commit
42a6c8a85f
|
@ -24,7 +24,7 @@ if (Rails.env.production? && SiteSetting.logging_provider == 'lograge') || (ENV[
|
|||
if controller.respond_to?(:current_user)
|
||||
controller.current_user&.username
|
||||
end
|
||||
rescue Discourse::InvalidAccess, Discourse::ReadOnly
|
||||
rescue Discourse::InvalidAccess, Discourse::ReadOnly, ActiveRecord::ReadOnlyError
|
||||
nil
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue