Limit the length of some log statements
This commit is contained in:
parent
aa3d626ada
commit
a2bfc4a487
2 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ module Job
|
|||
next
|
||||
end
|
||||
|
||||
Rails.logger.info("event=http_multi_send sender_id=#{user_id} recipient_id=#{person.id} url=#{url} xml='#{xml}'")
|
||||
Rails.logger.info("event=http_multi_send sender_id=#{user_id} recipient_id=#{person.id} url=#{url}")
|
||||
|
||||
request = Request.new(url, OPTS.merge(:params => {:xml => CGI::escape(xml)}))
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ module ResqueJobLogging
|
|||
:error_message => error.message,
|
||||
:parameters => {
|
||||
:job_class => self.name,
|
||||
:arguments => job_arguments
|
||||
:arguments => job_arguments.map!{|a| a.to_s[0..30]}
|
||||
}
|
||||
) if Rails.env.production?
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue