./lib/plugins/db_logger/init.rb in lux-fw-0.1.17 vs ./lib/plugins/db_logger/init.rb in lux-fw-0.1.35
- old
+ new
@@ -8,10 +8,10 @@
if Thread.current[:db_q]
Thread.current[:db_q][:time] += elms[1].to_f
Thread.current[:db_q][:cnt] += 1
# append debug=true as query-string to see database queries
- Lux.log(" #{Thread.current[:db_q][:cnt].to_s.rjust(2)}. #{time} : #{elms[2].cyan}\n") if Thread.current[:db_q]
+ Lux.log(" #{Thread.current[:db_q][:cnt].to_s.rjust(2)}. #{time} : #{elms[2].to_s.cyan}\n") if Thread.current[:db_q]
end
}
DB.loggers << logger