lib/dry/monitor/rack/logger.rb in dry-monitor-0.1.1 vs lib/dry/monitor/rack/logger.rb in dry-monitor-0.1.2

- old
+ new

@@ -34,11 +34,11 @@ rack_monitor.on(:stop) do |env:, status:, time:| log_stop_request(env, status, time) end - rack_monitor.on(:error) do |exception:| - log_exception(exception) + rack_monitor.on(:error) do |event| + log_exception(event[:exception]) end end def log_exception(e) logger.error e.message