I run heudiconv with reproin heuristic and with --dbg flag on, but I didn't see debugging information in the log.
It turns out that the debug level set in the main.py under heudiconv is not propagated to the reproin.py.
However, I believe the intuition of the author of reproin.py is that we inherit the logger from heudiconv by
logging.getLogger('heudiconv')
My fix:
I change the line in reproin.py from
logging.getLogger('heudiconv')
to
logging.getLogger('heudiconv.main')
and I got the debug log into STDERR.
Platform details:
Choose one:
[x] Local environment
Ubuntu 20.02, Python 3.10.11
Summary
I run
heudiconv
with reproin heuristic and with--dbg
flag on, but I didn't see debugging information in the log. It turns out that the debug level set in themain.py
under heudiconv is not propagated to thereproin.py
.However, I believe the intuition of the author of
reproin.py
is that we inherit the logger from heudiconv bylogging.getLogger('heudiconv')
My fix: I change the line in
reproin.py
fromlogging.getLogger('heudiconv')
tologging.getLogger('heudiconv.main')
and I got the debug log into STDERR.Platform details:
Choose one:
[x] Local environment Ubuntu 20.02, Python 3.10.11
Heudiconv version: 0.13.1