Skip to content

Commit

Permalink
Use __STACKTRACE__ instead of System.stacktrace/0
Browse files Browse the repository at this point in the history
  • Loading branch information
chen-anders committed Dec 13, 2023
1 parent 0e72058 commit 4035cd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/nsq/message.ex
Original file line number Diff line number Diff line change
Expand Up @@ -193,16 +193,16 @@ defmodule NSQ.Message do
rescue
e ->
NSQ.Logger.error "Error running message handler: #{inspect e}"
NSQ.Logger.error inspect System.stacktrace
NSQ.Logger.error inspect __STACKTRACE__
{:req, -1, true}
catch
:exit, b ->
NSQ.Logger.error "Caught exit running message handler: :exit, #{inspect b}"
NSQ.Logger.error inspect System.stacktrace
NSQ.Logger.error inspect __STACKTRACE__
{:req, -1, true}
a, b ->
NSQ.Logger.error "Caught exception running message handler: #{inspect a}, #{inspect b}"
NSQ.Logger.error inspect System.stacktrace
NSQ.Logger.error inspect __STACKTRACE__
{:req, -1, true}
end
end
Expand Down

0 comments on commit 4035cd4

Please sign in to comment.