We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1da1b8d commit 5206f93Copy full SHA for 5206f93
base/logging.jl
@@ -391,6 +391,7 @@ end
391
end
392
393
function with_logstate(f::Function, logstate)
394
+ @nospecialize
395
t = current_task()
396
old = t.logstate
397
try
@@ -401,7 +402,6 @@ function with_logstate(f::Function, logstate)
401
402
403
404
-
405
#-------------------------------------------------------------------------------
406
# Control of the current logger and early log filtering
407
@@ -502,7 +502,7 @@ with_logger(logger) do
502
503
```
504
"""
505
-with_logger(f::Function, logger::AbstractLogger) = with_logstate(f, LogState(logger))
+with_logger(@nospecialize(f::Function), logger::AbstractLogger) = with_logstate(f, LogState(logger))
506
507
508
current_logger()
0 commit comments