Permalink
Browse files

Don't rely on implicit #to_s

JRuby 1.6 raises an exception without this patch.
  • Loading branch information...
1 parent d781aa4 commit 394c0e4bb8fec36987bbf88dd998b37706296653 @pietern pietern committed Mar 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/redis/client.rb
View
@@ -220,7 +220,7 @@ def logging(commands)
begin
commands.each do |name, *args|
- @logger.debug("Redis >> #{name.to_s.upcase} #{args.join(" ")}")
+ @logger.debug("Redis >> #{name.to_s.upcase} #{args.map(&:to_s).join(" ")}")
end
t1 = Time.now

0 comments on commit 394c0e4

Please sign in to comment.