DEV: Rescue from readonly error in lograge.
This commit is contained in:
parent
4466fcf1bc
commit
eb9565d8fc
|
@ -22,7 +22,7 @@ if (Rails.env.production? && SiteSetting.logging_provider == 'lograge') || ENV["
|
|||
if controller.respond_to?(:current_user)
|
||||
controller.current_user&.username
|
||||
end
|
||||
rescue Discourse::InvalidAccess
|
||||
rescue Discourse::InvalidAccess, Discourse::ReadOnly
|
||||
nil
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue