Class: JSONAPI::Support::N1LogSubscriber
- Inherits:
-
Object
- Object
- JSONAPI::Support::N1LogSubscriber
- Defined in:
- lib/json_api/support/n1_log_subscriber.rb
Instance Method Summary collapse
Instance Method Details
#emit(event) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/json_api/support/n1_log_subscriber.rb', line 6 def emit(event) ev = event.is_a?(Hash) ? event : event.to_h return unless ev[:name] == "jpie.n1_detected" payload = ev[:payload] || {} log_warn((payload), payload[:correlation_id]) end |