lib/hanami/app.rb in hanami-1.0.0.beta2 vs lib/hanami/app.rb in hanami-1.0.0.beta3
- old
+ new
@@ -61,10 +61,10 @@
end
# @since 0.9.0
# @api private
def middleware(environment)
- builder.use Hanami::CommonLogger, Hanami.logger
+ builder.use Hanami::CommonLogger, Hanami.logger unless Hanami.logger.nil?
builder.use Rack::ContentLength
if middleware = environment.static_assets_middleware # rubocop:disable Lint/AssignmentInCondition
builder.use middleware
end