Removed logging entry from sniff_handler
authorJoar Wandborg <git@wandborg.com>
Sat, 22 Sep 2012 12:19:51 +0000 (14:19 +0200)
committerJoar Wandborg <git@wandborg.com>
Sat, 22 Sep 2012 12:19:51 +0000 (14:19 +0200)
The logging entry caused the submit page to crash if you tried to upload
an SVG with a non-ascii filename.

mediagoblin/media_types/image/processing.py

index 32b1f4f7aa95b752dda0bdc8f254599aa2c1fed5..bdb2290f5fe36f660b4c306b85f8412cddc16b26 100644 (file)
@@ -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