changeset 5733:4ca7ca278669

use logging.traceback to get more information if a filter crashes
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 28 Nov 2010 16:59:04 +0100
parents 109f7b6471af
children a0c4450dce2c
files MoinMoin/search/builtin.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/builtin.py	Sun Nov 28 16:55:46 2010 +0100
+++ b/MoinMoin/search/builtin.py	Sun Nov 28 16:59:04 2010 +0100
@@ -204,7 +204,7 @@
             logging.debug("Filter %s returned %d characters for file %s" % (modulename, len(data), filename))
         except (OSError, IOError), err:
             data = ''
-            logging.warning("Filter %s threw error '%s' for file %s" % (modulename, str(err), filename))
+            logging.traceback("Filter %s threw error '%s' for file %s" % (modulename, str(err), filename))
         return mt.mime_type(), data
 
     def _indexingRequest(self, request):