Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Sayan De
12,397 PointsLog "The French have the Grail"
import logging
logging.basicConfig(filename='cc.log', level=logging.DEBUG)
# Write your code below here
logging.debug("Hi")
logging.warning("The French have the Grail")
what is wrong with this code?
[Edited formatting -cf]
Chris Freeman
Treehouse Moderator 68,468 PointsNick Douma: You have a typo:
logger = logging.getLogger(__name__) #<-- rename getLogget to getLogger
2 Answers
Kenneth Love
Treehouse Guest TeacherHey, thanks for posting this. Just checked the code challenge and it's buggy. I'm working on fixing it now.
Kenneth Love
Treehouse Guest TeacherAlright, everything seems to be working now.
Your code passes for me, Sayan De
Sayan De
12,397 PointsThanks Sir
Nick Douma
4,292 PointsNick Douma
4,292 PointsI'm running into the same problem, and I've also tried code that's slightly different: