DEV: Rescue from ActiveRecord::Readonly error in lograge.

DEV: Rescue from ActiveRecord::Readonly error in lograge.

diff --git a/config/initializers/101-lograge.rb b/config/initializers/101-lograge.rb
index d3a3f98..bcbcc4c 100644
--- a/config/initializers/101-lograge.rb
+++ b/config/initializers/101-lograge.rb
@@ -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
 

GitHub sha: 42a6c8a8