Skip to content

Commit

Permalink
Merge pull request #37994 from bibstha/remove_activejob_logging_backt…
Browse files Browse the repository at this point in the history
…race

Remove stacktrace from ActiveJob logging callback halts
  • Loading branch information
rafaelfranca committed Dec 19, 2019
2 parents dbe9e66 + 210bf6a commit 3c7c2d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activejob/lib/active_job/log_subscriber.rb
Expand Up @@ -10,7 +10,7 @@ def enqueue(event)

if ex
error do
"Failed enqueuing #{job.class.name} to #{queue_name(event)}: #{ex.class} (#{ex.message}):\n" + Array(ex.backtrace).join("\n")
"Failed enqueuing #{job.class.name} to #{queue_name(event)}: #{ex.class} (#{ex.message})"
end
elsif event.payload[:aborted]
info do
Expand All @@ -29,7 +29,7 @@ def enqueue_at(event)

if ex
error do
"Failed enqueuing #{job.class.name} to #{queue_name(event)}: #{ex.class} (#{ex.message}):\n" + Array(ex.backtrace).join("\n")
"Failed enqueuing #{job.class.name} to #{queue_name(event)}: #{ex.class} (#{ex.message})"
end
elsif event.payload[:aborted]
info do
Expand Down

0 comments on commit 3c7c2d2

Please sign in to comment.