started end def finish(name, id, payload) # Instrumented block finished end end ActiveSupport::Notifications.subscribe %r[xml], EventedSubscriber.new A!"#v$S%pp&r" 4
end ActiveSupport::Notifications.subscribe 'xml.not_found' do |*args| event = ActiveSupport::Notifications::Event.new(*args) Rails.logger.info ":bomb: #{event.payload[:xml]} not found" end
info "processed #{event.payload[:xml]}" end # xml.not_found def not_found(event) debug ":bomb: #{event.payload[:xml]} not found" end end ProcessingLogger.attach_to :xml