SlowQueries
6 7 8 9 10 11 12
# File 'lib/no_brainer/profiler/logger.rb', line 6 def on_query(env) level = ::Logger::ERROR if env[:exception] level ||= not_indexed(env) ? ::Logger::INFO : ::Logger::DEBUG return if NoBrainer.logger.level > level NoBrainer.logger.add(level, build_message(env)) end