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.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module DbDebug
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: db_debug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: