Solved Debug messages don't show up JAJackStackOP 24 Sep, 18:24 I changed prints to logging.debug() and they're gone.
HEHenryWrites25 Sep, 07:19 Solutionreplies: 2That's intended at stage 1: basicConfig() sets the level to INFO, so DEBUG messages are filtered out. That's the whole point — debug output stays in the code but is hidden until you need it. Stage 2 turns it back on just for the "fuel" logger.
SASamPrice25 Sep, 15:30Per-logger levels are super useful in bigger apps: debug one module without drowning in the rest.
Comments 4
Join the discussion CommentAlready have an account? Log in
That's intended at stage 1:
basicConfig()sets the level to INFO, so DEBUG messages are filtered out. That's the whole point — debug output stays in the code but is hidden until you need it. Stage 2 turns it back on just for the "fuel" logger.So I can leave debug lines in without spamming the output. Nice.
I use this at work all the time. Great to see it taught early.
Per-logger levels are super useful in bigger apps: debug one module without drowning in the rest.