Skip to content

Commit 9d19647

Browse files
committed
do not send nil
1 parent a1eb1f6 commit 9d19647

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sentry/logger_backend.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ defmodule Sentry.LoggerBackend do
3737

3838
Sentry.capture_exception(reason, opts)
3939

40-
reason when is_atom(reason) ->
40+
reason when is_atom(reason) and not is_nil(reason) ->
4141
Sentry.capture_exception(reason, event_source: :logger)
4242

4343
_ ->

0 commit comments

Comments
 (0)