Commit 0f1b0052 authored by Nicolas Dandrimont's avatar Nicolas Dandrimont 🤔
Browse files

Add a traceback output when a plugin fails

parent 5afa8085
...@@ -36,12 +36,14 @@ __author__ = 'Jonny Lamb' ...@@ -36,12 +36,14 @@ __author__ = 'Jonny Lamb'
__copyright__ = 'Copyright © 2008 Jonny Lamb, Copyright © 2010 Jan Dittberner' __copyright__ = 'Copyright © 2008 Jonny Lamb, Copyright © 2010 Jan Dittberner'
__license__ = 'MIT' __license__ = 'MIT'
from debian import deb822
import logging import logging
import os import os
import tempfile
import shutil import shutil
import sys import sys
import tempfile
import traceback
from debian import deb822
import pylons import pylons
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
...@@ -210,8 +212,8 @@ class Plugins(object): ...@@ -210,8 +212,8 @@ class Plugins(object):
try: try:
result.extend(p.run()) result.extend(p.run())
except Exception, e: except Exception:
log.debug("Something wrong happened while running the plugin '%s': %s" % (plugin, e)) log.debug("Something wrong happened while running the plugin '%s': %s" % (plugin, traceback.format_exc()))
if self.conf['extract']: if self.conf['extract']:
self._cleanup() self._cleanup()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment