lib/rack/insight/panels/log_panel.rb in rack-insight-0.5.26 vs lib/rack/insight/panels/log_panel.rb in rack-insight-0.5.27

- old
+ new

@@ -1,9 +1,10 @@ module Rack::Insight class LogPanel < Panel class LogEntry + # TODO: Update this to the Rack::Insight panel format attr_reader :level, :time, :message - LEVELS = ['DEBUG', 'INFO', 'WARN', 'ERROR', 'FATAL'] + LEVELS = ['DEBUG', 'INFO', 'WARN', 'ERROR', 'FATAL'] unless defined?(LEVELS) def initialize(level, time, message) @level = LEVELS[level] @time = time @message = message