celery: log exception in the event of unknown IOError

This commit is contained in:
Daniel Dourvaris 2016-06-24 14:35:49 +03:00
parent 38df61623b
commit d017c17269

View file

@ -64,7 +64,7 @@ def run_task(task, *args, **kwargs):
log.error('Unable to connect to celeryd. Sync execution')
rhodecode.CELERY_ENABLED = False
else:
log.error("Exception while connecting to celeryd.")
log.exception("Exception while connecting to celeryd.")
except KeyError as e:
log.error('Unable to connect to celeryd. Sync execution')
except Exception as e: