to_s args before trying to slice them
This commit is contained in:
parent
e7cca604e6
commit
bd64cb723f
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ module ResqueJobLogging
|
||||||
end
|
end
|
||||||
log_string += "ms=#{time} "
|
log_string += "ms=#{time} "
|
||||||
arg_count = 1
|
arg_count = 1
|
||||||
args.each{|arg| log_string += "arg#{arg_count}=\"#{arg[0..30]}\" "}
|
args.each{|arg| log_string += "arg#{arg_count}=\"#{arg.to_s[0..30]}\" "}
|
||||||
|
|
||||||
Rails.logger.info(log_string)
|
Rails.logger.info(log_string)
|
||||||
raise error if error
|
raise error if error
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue