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