DEV: Rescue from readonly error in lograge.

DEV: Rescue from readonly error in lograge.

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

GitHub sha: eb9565d8