db_debug 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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: