FIX: Set override_level on Logster loggers (#27519)

A followup to f595d599dd
This commit is contained in:
Jarek Radosz 2024-06-18 21:53:51 +02:00 committed by GitHub
parent 6ac7d02a8f
commit c1b0488c54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ module DiscourseRackQuietAssetsLogger
end
end
super(env).tap { Rails.logger.override_level = nil if override }
super(env).tap { Logster.logger.override_level = nil if override }
end
end

View File

@ -29,7 +29,7 @@ class SilenceLogger < Rails::Rack::Logger
super(env)
end
ensure
Rails.logger.override_level = nil if override
Logster.logger.override_level = nil if override
end
end