Skip to content

Loading…

global name 'logger' is not defined #6

Closed
DrMartiner opened this Issue · 2 comments

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
slashRoot tech collective member

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

@DrMartiner

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

@jMyles jMyles added a commit that closed this issue
@jMyles jMyles Fixes #6
With tests.
02eead8
@jMyles jMyles closed this in 02eead8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.