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.6.1.1.5 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.6.1.1.1 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.6.1.1.0 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.2.0.2.3 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.2.0.2.1 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.2.0.2.2 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.5.5.5.1 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.5.5.5.0 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.2.0.1.4 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.5.5.4.1 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.5.5.4.0 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.2.0.1.3 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.5.5.3.1 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.5.4.3.0 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.5.3.2.0 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.5.3.2.0.pre.beta1 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.5.2.1.0.pre.beta1 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.5.2.0.0 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.2.0.1.1 lib/fiona7/scrivito_patches/log_subscriber.rb
infopark_fiona7-1.2.0.0.1 lib/fiona7/scrivito_patches/log_subscriber.rb