diff --git a/base/logging.jl b/base/logging.jl index 1b8e5e0f54192..db7ddf37c676d 100644 --- a/base/logging.jl +++ b/base/logging.jl @@ -669,7 +669,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)