From 4ae42a68521ec45f9c3d2cf56ddc89f8dc5fbdf3 Mon Sep 17 00:00:00 2001 From: Gonzalo <456459+grzuy@users.noreply.github.com> Date: Thu, 6 Jun 2024 14:43:09 -0300 Subject: [PATCH] mix format --- lib/tower/logger_handler.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tower/logger_handler.ex b/lib/tower/logger_handler.ex index 1557333..f348ef7 100644 --- a/lib/tower/logger_handler.ex +++ b/lib/tower/logger_handler.ex @@ -90,8 +90,10 @@ defmodule Tower.LoggerHandler do case Exception.normalize(:error, reason) do %ErlangError{} -> Tower.report(:exit, reason, stacktrace, meta) + e when is_exception(e) -> Tower.report_exception(e, stacktrace, meta) + _ -> Tower.report(:exit, reason, stacktrace, meta) end