Skip to content

Commit 6275d0f

Browse files
committed
Fix ComponentLogger atomic field construction
1 parent f3fc0fe commit 6275d0f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/ComponentLogging.jl‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ end
2929

3030
function ComponentLogger(rules::Dict{RuleKey,LogLevel}=Dict{RuleKey,LogLevel}((DEFAULT_SYM,) => Info); sink=ConsoleLogger(Debug))
3131
rules = copy(rules)
32-
return ComponentLogger(rules, sink, ReentrantLock(), minimum(values(rules)).level)
32+
minlvl = Atomic{Int32}(minimum(values(rules)).level)
33+
return ComponentLogger(rules, sink, ReentrantLock(), minlvl)
3334
end
3435

3536
function ComponentLogger(nonstdrules::AbstractDict; sink=ConsoleLogger(Debug))

0 commit comments

Comments
 (0)