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 trialHani Habra
1,784 PointsLogging a message is not working
I just can't fathom why this isn't working. I've watched the video twice and this is all we had to do to log a message.
Instructions: Log a message (using the logging package) at the Debug level. Message can be anything. First two lines are given.
Error says "No DEBUG log"
import logging
logging.basicConfig(filename='cc.log', level=logging.DEBUG)
logging.info("WHY IS THIS NOT WORKING?!")
2 Answers
Dan Johnson
40,533 PointsThe challenge wants you to log at debug level, but info will log at info level so you'll need to swap that out.
Hani Habra
1,784 PointsGotcha. Thanks