lib/hanami/providers/rack.rb in hanami-2.1.0 vs lib/hanami/providers/rack.rb in hanami-2.2.0.beta1

- old
+ new

@@ -18,12 +18,12 @@ Dry::Monitor.load_extensions(:rack) # Explicitly register the Rack middleware events on our notifications bus. The Dry::Monitor # rack extension (activated above) does register these globally, but if the notifications # bus has been used before this provider loads, then it will have created its own separate - # locally copy of all registered events as of that moment in time, which will not included - # the Rack events globally reigstered above. + # local copy of all registered events as of that moment in time, which will not be included + # in the Rack events globally registered above. notifications = target["notifications"] notifications.register_event(Dry::Monitor::Rack::Middleware::REQUEST_START) notifications.register_event(Dry::Monitor::Rack::Middleware::REQUEST_STOP) notifications.register_event(Dry::Monitor::Rack::Middleware::REQUEST_ERROR) end @@ -35,10 +35,10 @@ monitor_middleware = Dry::Monitor::Rack::Middleware.new( target["notifications"], clock: Dry::Monitor::Clock.new(unit: :microsecond) ) - rack_logger = Hanami::Web::RackLogger.new(target[:logger], env: target.env) + rack_logger = Hanami::Web::RackLogger.new(target[:logger], env: target.container.env) rack_logger.attach(monitor_middleware) register "monitor", monitor_middleware end end