From baae1578dae4ccf6538baa1f362409e16f94f266 Mon Sep 17 00:00:00 2001 From: Elrond Date: Sun, 19 Feb 2012 12:13:48 +0100 Subject: [PATCH] Let mark_entry_failed log unknown exceptions I don't know exactly why, but an exception during processing hasn't found its way up. The entry was marked as failed and that was it. So I decided to add a _log.warn to the part of mark_entry_failed that handles general exceptions. --- mediagoblin/processing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mediagoblin/processing.py b/mediagoblin/processing.py index 9e57380d..a07de869 100644 --- a/mediagoblin/processing.py +++ b/mediagoblin/processing.py @@ -114,6 +114,7 @@ def mark_entry_failed(entry_id, exc): u'fail_error': exc.exception_path, u'fail_metadata': exc.metadata}}) else: + _log.warn("No idea what happened here, but it failed: %r", exc) # Looks like no, so just mark it as failed and don't record a # failure_error (we'll assume it wasn't handled) and don't record # metadata (in fact overwrite it if somehow it had previous info