aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/submit/views.py
diff options
context:
space:
mode:
authorMichele Azzolari <macno@macno.org>2012-01-17 23:15:47 +0100
committerMichele Azzolari <macno@macno.org>2012-01-17 23:15:47 +0100
commitc03d13cd791ac41db1be72e8a5d4d2eaa6cc6087 (patch)
tree309becfd505cb43b21ecce8e94c9c62337affe02 /mediagoblin/submit/views.py
parent77b91efcc260cf5f4e7d2b544a02a12c51f45ad4 (diff)
downloadmediagoblin-c03d13cd791ac41db1be72e8a5d4d2eaa6cc6087.tar.lz
mediagoblin-c03d13cd791ac41db1be72e8a5d4d2eaa6cc6087.tar.xz
mediagoblin-c03d13cd791ac41db1be72e8a5d4d2eaa6cc6087.zip
Cleaned the code
Diffstat (limited to 'mediagoblin/submit/views.py')
-rw-r--r--mediagoblin/submit/views.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/mediagoblin/submit/views.py b/mediagoblin/submit/views.py
index 91498b09..33868785 100644
--- a/mediagoblin/submit/views.py
+++ b/mediagoblin/submit/views.py
@@ -23,6 +23,8 @@ from celery import registry
import urllib,urllib2
import logging
+_log = logging.getLogger(__name__)
+
from werkzeug.utils import secure_filename
from mediagoblin.db.util import ObjectId
@@ -145,10 +147,10 @@ def submit_start(request):
except urllib2.HTTPError as exc:
# This is not a big issue, the item will be fetched
# by the PuSH server next time we hit it
- logging.getLogger(__name__).warning(
+ _log.warning(
"push url %r gave error %r", huburl, exc.code)
except urllib2.URLError as exc:
- logging.getLogger(__name__).warning(
+ _log.warning(
"push url %r is unreachable %r", huburl, exc.reason)
add_message(request, SUCCESS, _('Woohoo! Submitted!'))