Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslandoga committed Oct 8, 2024
1 parent fc8011a commit 26b4041
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/oban_error_reporter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ defmodule ObanErrorReporter do
# Logs the error and sends it to Sentry
defp capture_error(meta, extra) do
Logger.error(
# this message is ignored by Sentry
"Background job (#{inspect(extra)}) failed:\n\n " <>
Exception.format(:error, meta.reason, meta.stacktrace),
# Sentry report is built entirely from crash_reason
crash_reason: {meta.reason, meta.stacktrace},
sentry: %{extra: extra}
)
Expand Down

0 comments on commit 26b4041

Please sign in to comment.