Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "A logger accepts DEBUG and above, but its only handler is set to WARNING. What happens to an INFO record?" on CodeWiki (https://codewiki.com/practice/mcq/python/checkpoint-4/checkpoint-4-handler-threshold/).
Context (verbatim from the page):
"""
A logger accepts DEBUG and above, but its only handler is set to WARNING. What happens to an INFO record?
The logger creates it, but the handler filters it out
The handler emits it because the logger accepted it
Python automatically lowers the handler threshold to DEBUG
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in Python. Where you are unsure, say so.