From a1da9073f76af8afe306a0eafcc24df0e0c56e83 Mon Sep 17 00:00:00 2001 From: viniciusjusten Date: Fri, 1 Dec 2023 17:01:28 -0300 Subject: [PATCH] close logger before fatal error --- src/logs.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/logs.jl b/src/logs.jl index 693396b..35f4b1d 100644 --- a/src/logs.jl +++ b/src/logs.jl @@ -20,6 +20,9 @@ function fatal_error( msg::AbstractString; exception::Exception = ErrorException("Fatal error"), ) + logger = Logging.global_logger() + close_polyglot_logger(logger) + @logmsg FatalErrorLevel msg throw(exception) return nothing