rails_semantic logger has an optional dependency on Rackup.
Unfortunately, Bundler doesn't have a concept of an optional dependency, meaning that it doesn't enforce the loading of gems that aren't declared as a requirement in the gemspec. This means that rails_semantic_logger behavior actually depends on the ordering inside the Gemfile, and I don't think that was anyone's intention.
This change force-preloads Rackup if it's available or works a usual if not.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Description of changes
rails_semantic logger has an optional dependency on Rackup.
Unfortunately, Bundler doesn't have a concept of an optional dependency, meaning that it doesn't enforce the loading of gems that aren't declared as a requirement in the gemspec. This means that rails_semantic_logger behavior actually depends on the ordering inside the Gemfile, and I don't think that was anyone's intention.
This change force-preloads Rackup if it's available or works a usual if not.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.