lib/heavylog.rb in heavylog-0.0.7 vs lib/heavylog.rb in heavylog-0.0.8
- old
+ new
@@ -108,10 +108,10 @@
end
def message_size(message)
return message.bytesize if message.respond_to?(:bytesize)
return message.map(&:to_s).sum(&:bytesize) if message.is_a?(Array)
- message.length
+ message.to_s.length
end
end
require 'heavylog/railtie' if defined?(Rails)