Skip to content

Commit da05828

Browse files
ensure caller is pid
Co-authored-by: José Valim <[email protected]>
1 parent 701eabc commit da05828

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
@@ -127,7 +127,7 @@ defmodule Sentry.LoggerBackend do
127127
end
128128
end
129129

130-
defp get_sentry_from_callers([head | tail]) do
130+
defp get_sentry_from_callers([head | tail]) when is_pid(head) do
131131
with {:dictionary, [_ | _] = dictionary} <- :erlang.process_info(head, :dictionary),
132132
%{sentry: sentry} <- dictionary[:"$logger_metadata$"] do
133133
sentry

0 commit comments

Comments
 (0)