From e0d396f8430d5fe3a9bfc587dd9071da7064863d Mon Sep 17 00:00:00 2001 From: Jeff Balogh Date: Thu, 27 May 2010 10:06:51 -0700 Subject: [PATCH] use commonware.log --- apps/firefoxcup/twitter.py | 7 +++++-- apps/firefoxcup/views.py | 7 ++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/firefoxcup/twitter.py b/apps/firefoxcup/twitter.py index 4ebb6a0d6d..db8302bf42 100644 --- a/apps/firefoxcup/twitter.py +++ b/apps/firefoxcup/twitter.py @@ -1,15 +1,18 @@ from hashlib import md5 import json -import logging from urllib import urlencode import urllib2 + from django.core.cache import cache + from bleach import Bleach +import commonware.log import jinja2 import ttp + from . import twitter_languages -log = logging.getLogger('z.firefoxcup') +log = commonware.log.getLogger('z.firefoxcup') parser = ttp.Parser() bleach = Bleach() diff --git a/apps/firefoxcup/views.py b/apps/firefoxcup/views.py index 2ad803dd4c..457d1e9871 100644 --- a/apps/firefoxcup/views.py +++ b/apps/firefoxcup/views.py @@ -1,13 +1,10 @@ import jingo -from addons.models import Persona from twitter import search + +from addons.models import Persona from . import tags, email_enabled from . import teams as teams_config -import logging - -log = logging.getLogger('z.firefoxcup') - # Create your views here. def index(request):