File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
lib/rails_semantic_logger Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ class Engine < ::Rails::Engine
204204 RailsSemanticLogger ::Rack ::Logger . started_request_log_level = :info if config . rails_semantic_logger . started
205205
206206 # Silence asset logging by applying a filter to the Rails logger itself, not any of the appenders.
207- if config . rails_semantic_logger . quiet_assets && config . assets . prefix
207+ if config . rails_semantic_logger . quiet_assets && config . respond_to? ( :assets ) && config . assets . prefix
208208 assets_root = config . relative_url_root . to_s + config . assets . prefix
209209 assets_regex = %r(\A /{0,2}#{ assets_root } )
210210 RailsSemanticLogger ::Rack ::Logger . logger . filter = -> ( log ) { log . payload [ :path ] !~ assets_regex if log . payload }
You can’t perform that action at this time.
0 commit comments