SlashRoot / django-coldbrew

coffeescript tooling for django
Other
4 stars 0 forks source link

global name 'logger' is not defined #6

Closed DrMartiner closed 12 years ago

DrMartiner commented 12 years ago

Hi!

It's grate application!

I got error: NameError at /

global name 'logger' is not defined

Request Method: GET Request URL: http://localhost:8000/ Django Version: 1.4 Exception Type: NameError Exception Value:

global name 'logger' is not defined

Exception Location: /path/to/env/src/package/coldbrew/init.py in compile, line 25 Python Executable: /path/to/env/bin/python Python Version: 2.7.2

jMyles commented 12 years ago

You're right. We don't have any tests that cover the error handling, so this one slipped through the cracks.

DrMartiner commented 12 years ago

Solution: import logging logger = logging.getLogger('coldbrew')