lib/sequel_rails/railties/log_subscriber.rb in sequel-rails-0.9.2 vs lib/sequel_rails/railties/log_subscriber.rb in sequel-rails-0.9.3
- old
+ new
@@ -18,10 +18,10 @@
self.class.runtime += event.duration
return unless logger.debug?
payload = event.payload
- name = sprintf('%s (%.1fms)', payload[:name], event.duration)
+ name = format('%s (%.1fms)', payload[:name], event.duration)
sql = payload[:sql].squeeze(' ')
binds = nil
unless (payload[:binds] || []).empty?
binds = ' ' + payload[:binds].map do |col, v|