reidmorrison / rails_semantic_logger

Rails Semantic Logger replaces the Rails default logger with Semantic Logger
https://logger.rocketjob.io/rails
Apache License 2.0
330 stars 117 forks source link

Take Rails' relative_url_root into account when filtering out Rack asset requests #124

Closed ignisf closed 3 years ago

ignisf commented 3 years ago

This commit PR the regex used for the quiet_assets setting with the content of Rails.application.config.relative_url_root[1]. Quiet assets should now also work with applications deployed in a subdirectory.

[1] https://guides.rubyonrails.org/v6.1.3/configuring.html#deploy-to-a-subdirectory-relative-url-root

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.