From d7eb981efcf2ba8cd57e8cfc47c5628ea6f7dff9 Mon Sep 17 00:00:00 2001 From: Sebastian Pfitzner Date: Tue, 16 Mar 2021 09:24:29 +0100 Subject: [PATCH] fix at-logprogress outside of at-withprogress --- src/ProgressLogging.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ProgressLogging.jl b/src/ProgressLogging.jl index 354a354..30dd87a 100644 --- a/src/ProgressLogging.jl +++ b/src/ProgressLogging.jl @@ -377,7 +377,7 @@ macro logprogress(name, progress = nothing, args...) msgexpr = :($ProgressString($_asprogress( $name, $id_tmp, - $_parentid_var; + Base.@isdefined($_parentid_var) ? $_parentid_var : $ROOTID; progress = $progress, ))) quote