┌ Warning: Assignment to `a` in soft scope is ambiguous because a global variable by the same name exists: `a` will be treated as a new local. Disambiguate by using `local a` to suppress this warning or `global a` to assign to the existing global variable.
└ @ ~/src/logger_error_MWE.jl:3
However when setting Memento config to substitute global logging:
using Memento
Memento.config!("info"; substitute=true)
a = 1
for i in [0]
a = 2
end
The following script:
produces the Julia warning
However when setting Memento config to substitute global logging:
we then get the following error: