global name 'logger' is not defined #6

Closed
DrMartiner opened this Issue Oct 7, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@DrMartiner

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

This comment has been minimized.

Show comment
Hide comment
@jMyles

jMyles Oct 7, 2012

Member

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

Member

jMyles commented Oct 7, 2012

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

@DrMartiner

This comment has been minimized.

Show comment
Hide comment
@DrMartiner

DrMartiner Oct 7, 2012

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

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

@jMyles jMyles closed this in 02eead8 Oct 7, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment