From 04a4ad4576ccc3a4dcb47be46109679a152fdea7 Mon Sep 17 00:00:00 2001 From: Stephan Antholzer Date: Wed, 6 Dec 2023 15:07:31 +0100 Subject: [PATCH] do not perform timestamp transform for log messages that are not logged (#693) * do not perform timestamp transform for log messages that are not logged * typo --- src/Logger.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Logger.jl b/src/Logger.jl index 3eeaaaad7..e542348f6 100644 --- a/src/Logger.jl +++ b/src/Logger.jl @@ -54,7 +54,7 @@ function initialize_logging(; log_name = default_log_name()) end ) - LoggingExtras.TeeLogger(LoggingExtras.MinLevelLogger(logger, Genie.config.log_level)) |> timestamp_logger |> global_logger + LoggingExtras.MinLevelLogger(timestamp_logger(logger), Genie.config.log_level) |> global_logger nothing end @@ -93,4 +93,4 @@ function Logging.handle_message(logger::GenieLogger, lvl, msg, _mod, group, id, nothing end -end \ No newline at end of file +end