Skip to content

Commit

Permalink
do not perform timestamp transform for log messages that are not logg…
Browse files Browse the repository at this point in the history
…ed (#693)

* do not perform timestamp transform for log messages that are not logged

* typo
  • Loading branch information
antholzer authored Dec 6, 2023
1 parent 1dff203 commit 04a4ad4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Logger.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -93,4 +93,4 @@ function Logging.handle_message(logger::GenieLogger, lvl, msg, _mod, group, id,
nothing
end

end
end

0 comments on commit 04a4ad4

Please sign in to comment.