Skip to content

Commit

Permalink
Merge pull request #308 from reevoo/exception_serialization_in_maxret…
Browse files Browse the repository at this point in the history
…ry_handler

Avoid stack level to deep when trying to serialize the exception obje…
  • Loading branch information
gabrieljoelc authored Aug 24, 2017
2 parents ec52276 + 93dca2b commit 3dd8c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sneakers/handlers/maxretry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def handle_retry(hdr, props, msg, reason)
"#{log_prefix} msg=failing, retry_count=#{num_attempts}, reason=#{reason}"
end
data = {
error: reason,
error: reason.to_s,
num_attempts: num_attempts,
failed_at: Time.now.iso8601,
payload: Base64.encode64(msg.to_s),
Expand Down

0 comments on commit 3dd8c61

Please sign in to comment.