From: Joar Wandborg Date: Sat, 22 Sep 2012 12:19:51 +0000 (+0200) Subject: Removed logging entry from sniff_handler X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4f8508f664089f793e1f42a654df707b457be92d;p=mediagoblin.git Removed logging entry from sniff_handler The logging entry caused the submit page to crash if you tried to upload an SVG with a non-ascii filename. --- diff --git a/mediagoblin/media_types/image/processing.py b/mediagoblin/media_types/image/processing.py index 32b1f4f7..bdb2290f 100644 --- a/mediagoblin/media_types/image/processing.py +++ b/mediagoblin/media_types/image/processing.py @@ -63,11 +63,6 @@ def sniff_handler(media_file, **kw): name, ext = os.path.splitext(kw['media'].filename) clean_ext = ext[1:].lower() # Strip the . from ext and make lowercase - _log.debug('name: {0}\next: {1}\nlower_ext: {2}'.format( - name, - ext, - clean_ext)) - if clean_ext in SUPPORTED_FILETYPES: _log.info('Found file extension in supported filetypes') return True