Sha256: 05f5fab8e58993705647020c12b39d6f7ccbf0a565070e665bbbd6efc65a9abc
Contents?: true
Size: 620 Bytes
Versions: 1
Compression:
Stored size: 620 Bytes
Contents
# frozen_string_literal: true module Hanami module Providers class Rack < Dry::System::Provider::Source def prepare require "dry/monitor" require "hanami/web/rack_logger" Dry::Monitor.load_extensions(:rack) end def start target.start :logger notifications = target[:notifications] monitor_middleware = Dry::Monitor::Rack::Middleware.new(notifications) rack_logger = Hanami::Web::RackLogger.new(target[:logger]) rack_logger.attach(monitor_middleware) register "monitor", monitor_middleware end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hanami-2.0.0.beta4 | lib/hanami/providers/rack.rb |