db_debug 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/db_debug/active_record.rb +2 -2
- data/lib/db_debug/version.rb +1 -1
- metadata +1 -1
@@ -19,8 +19,8 @@ module DbDebug
|
|
19
19
|
request.env['db.count'] = request.env['db.count'] + 1
|
20
20
|
time = Benchmark.realtime { resp = find_by_sql_without_record_counter(*args) } * 1000
|
21
21
|
if request.params[:db_debug]
|
22
|
-
Logger.log "DB Query took: #{time} ms"
|
23
|
-
Logger.log caller.delete_if{ |str| str.include?("/gems/") || str.include?("script/rails") }.join("\n")
|
22
|
+
Logger.log :white, "DB Query took: #{time} ms"
|
23
|
+
Logger.log :white, caller.delete_if{ |str| str.include?("/gems/") || str.include?("script/rails") }.join("\n")
|
24
24
|
end
|
25
25
|
request.env['db.time'] = request.env['db.time'] + time
|
26
26
|
resp
|
data/lib/db_debug/version.rb
CHANGED