Sha256: efa510ae47af59df1dd5f36d30dfe72a08667201171f27788b297e1c5d783ca4
Contents?: true
Size: 657 Bytes
Versions: 2
Compression:
Stored size: 657 Bytes
Contents
module Vizsla class RequestLogger def request_response_time(query_time) Rails.logger.debug "=" * 50 Rails.logger.debug "Total request/response time: #{query_time} seconds." Rails.logger.debug "=" * 50 end def log_events(events) if events.empty? Rails.logger.debug "=" * 50 Rails.logger.debug "No data collected. Are you calling ActiveRecord at all?" Rails.logger.debug "=" * 50 else events.keys.each do |event_name| Rails.logger.debug "=" * 50 Rails.logger.debug events[event_name] Rails.logger.debug "=" * 50 end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vizsla-0.0.3 | lib/vizsla/logger.rb |
vizsla-0.0.2 | lib/vizsla/logger.rb |