Display full trace during app loading exceptions
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
@@ -4,6 +4,8 @@ import logging
|
|||||||
import os
|
import os
|
||||||
import warnings
|
import warnings
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
import sys
|
||||||
|
import traceback
|
||||||
|
|
||||||
from kombu import Exchange, Queue
|
from kombu import Exchange, Queue
|
||||||
|
|
||||||
@@ -75,6 +77,8 @@ class MayanAppConfig(apps.AppConfig):
|
|||||||
'Import time error when running AppConfig.ready() of app '
|
'Import time error when running AppConfig.ready() of app '
|
||||||
'"%s".', self.name
|
'"%s".', self.name
|
||||||
)
|
)
|
||||||
|
exc_info = sys.exc_info()
|
||||||
|
traceback.print_exception(*exc_info)
|
||||||
raise exception
|
raise exception
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user