Use force=True when PrintOn/PrintOff combination is used
PrintOff()
following PrintOn()
does not always restore print level
as, per default, PrintOn()
will not decrease LogFilter.printing_level
if it is already 0 (see here). However, PrintOff()
will increase it unconditionally.
The fix (without touching Gaudi) is to use PrintOn(force=True)
.
Also removed some lone PrintOff()
s.
This does not change the stdout of Brunel.2017magup
.