diff --git a/base/logging.jl b/base/logging.jl index d2b6fa637c1bc..f60a9a1a80eab 100644 --- a/base/logging.jl +++ b/base/logging.jl @@ -672,7 +672,7 @@ function handle_message(logger::SimpleLogger, level::LogLevel, message, _module, end buf = IOBuffer() stream = logger.stream - if !isopen(stream) + if !(isopen(stream)::Bool) stream = stderr end iob = IOContext(buf, stream)