Class: Pakyow::Actions::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/pakyow/actions/logger.rb

Overview

Sets up a connection logger and logs the prologue/epilogue.

Instance Method Summary collapse

Instance Method Details

#call(connection, &block) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/pakyow/actions/logger.rb', line 8

def call(connection, &block)
  if silence?(connection)
    connection.logger.silence do
      call_with_logging(connection, &block)
    end
  else
    call_with_logging(connection, &block)
  end
end