From 022c28da2dfa51a44b7203155ac3265d859b0b80 Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Sat, 23 May 2020 08:04:47 -0500 Subject: [PATCH] Hide CoreLogging.catch_exceptions behind runtime dispatch --- base/logging.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/logging.jl b/base/logging.jl index a9618af5d94c98..9e1b29fd544fc8 100644 --- a/base/logging.jl +++ b/base/logging.jl @@ -80,6 +80,7 @@ end _invoked_min_enabled_level(@nospecialize(logger)) = invoke(min_enabled_level, Tuple{typeof(logger)}, logger) +_invoked_catch_exceptions(@nospecialize(logger)) = invoke(catch_exceptions, Tuple{typeof(logger)}, logger) """ NullLogger() @@ -349,7 +350,7 @@ end # Report an error in log message creation (or in the logger itself). @noinline function logging_error(logger, level, _module, group, id, filepath, line, @nospecialize(err)) - if !catch_exceptions(logger) + if !_invoked_catch_exceptions(logger) rethrow(err) end try