diff --git a/HISTORY.rst b/HISTORY.rst index dab31e28f7..4895b2b6dd 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -18,6 +18,7 @@ * Change how the HOME_VIEW setting is defined. * Remove the role permission grant and revoke permission. * Split trashed document views into their own module. +* Show entire sys trace when an App import exception is raised. 3.1.11 (2019-04-XX) =================== diff --git a/mayan/apps/common/apps.py b/mayan/apps/common/apps.py index 4c9b8027df..106a42c5ce 100644 --- a/mayan/apps/common/apps.py +++ b/mayan/apps/common/apps.py @@ -3,6 +3,8 @@ from __future__ import absolute_import, unicode_literals from datetime import timedelta import logging import os +import sys +import traceback import warnings from kombu import Exchange, Queue @@ -76,6 +78,8 @@ class MayanAppConfig(apps.AppConfig): 'Import time error when running AppConfig.ready() of app ' '"%s".', self.name ) + exc_info = sys.exc_info() + traceback.print_exception(*exc_info) raise exception