From 543386de12df43ef98bc867fbd9d85c0b7dee5f8 Mon Sep 17 00:00:00 2001 From: Thomas Christensen Date: Wed, 18 Aug 2021 17:08:04 -0400 Subject: [PATCH] force type stability of `_invoked_shouldlog` & friends for non-concrete loggers (#41863) --- base/logging.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/logging.jl b/base/logging.jl index 8177d1eddff84..712fe19c23699 100644 --- a/base/logging.jl +++ b/base/logging.jl @@ -79,15 +79,15 @@ function _invoked_shouldlog(logger, level, _module, group, id) shouldlog, Tuple{typeof(logger), typeof(level), typeof(_module), typeof(group), typeof(id)}, logger, level, _module, group, id - ) + )::Bool end function _invoked_min_enabled_level(@nospecialize(logger)) - return invoke(min_enabled_level, Tuple{typeof(logger)}, logger) + return invoke(min_enabled_level, Tuple{typeof(logger)}, logger)::LogLevel end function _invoked_catch_exceptions(@nospecialize(logger)) - return invoke(catch_exceptions, Tuple{typeof(logger)}, logger) + return invoke(catch_exceptions, Tuple{typeof(logger)}, logger)::Bool end """