From 902164d2e90ccab9dc6a39d93616e08d17d1bcc6 Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Tue, 30 Aug 2022 12:32:27 +0200 Subject: [PATCH] fix another invalidation from Static.jl This is a follow-up to https://github.com/JuliaLang/julia/pull/46481. I suggest the labels `latency` and `backport-1.8`. --- stdlib/Logging/src/ConsoleLogger.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/Logging/src/ConsoleLogger.jl b/stdlib/Logging/src/ConsoleLogger.jl index bb040aac91858..359b4019fb17c 100644 --- a/stdlib/Logging/src/ConsoleLogger.jl +++ b/stdlib/Logging/src/ConsoleLogger.jl @@ -118,7 +118,7 @@ function handle_message(logger::ConsoleLogger, level::LogLevel, message, _module # split into lines. msglines = [(indent=0, msg=l) for l in split(chomp(convert(String, string(message))::String), '\n')] stream = logger.stream - if !isopen(stream) + if !(isopen(stream)::Bool) stream = stderr end dsize = displaysize(stream)::Tuple{Int,Int}