Sha256: 0c84ee73d6c187aa11916b498be4bf8417094a9f6dcee1cd5bcda1ec9d23c2c6

Contents?: true

Size: 482 Bytes

Versions: 32

Compression:

Stored size: 482 Bytes

Contents

module Scrivito
  class LogSubscriber < ActiveSupport::LogSubscriber
    def backend_request(event)
      self.class.runtime += event.duration
      return unless logger.debug?

      duration = '(%.1fms)' % [event.duration]

      param = event.payload[:params]
      param_text = " #{param}" if param

      verb_text = event.payload[:verb].upcase
      path_text = event.payload[:path]

      debug "  Fiona7 #{verb_text} #{path_text}#{param_text} #{duration}"
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
infopark_fiona7-1.2.0.0.0 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.1.0.0.9 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.1.0.0.8 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.1.0.0.7 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.1.0.0.6 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.1.0.0.5 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.1.0.0.4 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.1.0.0.3 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.1.0.0.2 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.1.0.0.10 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.1.0.0.1 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.1.0.0.0 lib/fiona7/scrivito_patches/log_subscriber.rb