Sha256: 729a089903cb7157a612101727cfc0b6679912ae0738b1ab29b2b75745f24ef1
Contents?: true
Size: 473 Bytes
Versions: 1
Compression:
Stored size: 473 Bytes
Contents
module Workarea module FlowIo class ControllerLogSubscriber < ActiveSupport::LogSubscriber def start_processing(event) return unless logger.info? payload = event.payload info " Flow Experience: #{payload[:headers]['flow.io.experience']&.to_hash}" end private def logger ActionController::Base.logger end end end end Workarea::FlowIo::ControllerLogSubscriber.attach_to :action_controller
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workarea-flow_io-1.2.1 | lib/workarea/flow_io/controller_log_subscriber.rb |