From 63c7a0c9bdaced720ab731a805293be023955a8e Mon Sep 17 00:00:00 2001 From: viniciusjusten Date: Fri, 15 Mar 2024 14:51:53 -0300 Subject: [PATCH 1/2] check logger before closing polyglot logger --- src/logs.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/logs.jl b/src/logs.jl index 6211b8e..51d059f 100644 --- a/src/logs.jl +++ b/src/logs.jl @@ -32,7 +32,9 @@ function fatal_error( @logmsg FATAL_ERROR_LEVEL msg logger = Logging.global_logger() - close_polyglot_logger(logger) + if logger isa LoggingExtras.TeeLogger + close_polyglot_logger(logger) + end throw(exception) return nothing end From 0d176f57f90cdd3cd0df7d89736c4eb5dd8cce72 Mon Sep 17 00:00:00 2001 From: viniciusjusten Date: Fri, 15 Mar 2024 16:04:16 -0300 Subject: [PATCH 2/2] bump --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 5736efa..50b3a7b 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "LoggingPolyglot" uuid = "211639cc-9b11-4cfd-abc6-8f7477829344" -version = "0.3.0" +version = "0.3.1" [deps] Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"