lib/hanami/providers/db_logging.rb in hanami-2.2.0.beta1 vs lib/hanami/providers/db_logging.rb in hanami-2.2.0.beta2

- old
+ new

@@ -2,21 +2,21 @@ module Hanami module Providers # @api private # @since 2.2.0 - class DBLogging < Dry::System::Provider::Source + class DBLogging < Hanami::Provider::Source # @api private # @since 2.2.0 def prepare require "dry/monitor/sql/logger" - target["notifications"].register_event :sql + slice["notifications"].register_event :sql end # @api private # @since 2.2.0 def start - Dry::Monitor::SQL::Logger.new(target["logger"]).subscribe(target["notifications"]) + Dry::Monitor::SQL::Logger.new(slice["logger"]).subscribe(slice["notifications"]) end end end end