Module: Motion::ActionCableExtentions::LogSuppression

Included in:
Channel
Defined in:
lib/motion/action_cable_extentions/log_suppression.rb

Overview

By default ActionCable logs a lot. This module suppresses the debugging information on a _per channel_ basis.

Instance Method Summary collapse

Instance Method Details

#initializeObject



20
21
22
23
24
# File 'lib/motion/action_cable_extentions/log_suppression.rb', line 20

def initialize(*)
  super

  @_logger = Suppressor.new(logger)
end

#loggerObject



26
27
28
29
30
# File 'lib/motion/action_cable_extentions/log_suppression.rb', line 26

def logger
  return super unless defined?(@_logger)

  @_logger
end