Module: LogStruct::Integrations::Shrine::SkipLoggedEvents

Extended by:
T::Sig
Defined in:
lib/log_struct/integrations/shrine.rb

Overview

Prepended to Shrine's default instrumentation log subscriber, so it doesn't log the events that LogStruct logs

Instance Method Summary collapse

Instance Method Details

#call(event) ⇒ T.untyped

Parameters:

  • event (T.untyped)

Returns:

  • (T.untyped)


127
128
129
130
131
# File 'lib/log_struct/integrations/shrine.rb', line 127

def call(event)
  return if SHRINE_EVENTS.include?(event.name)

  super
end