From 51e5ab859b47e521c2fa5d2b5a0898ed287c31fc Mon Sep 17 00:00:00 2001 From: Hongzhang Liu Date: Tue, 30 Jun 2020 17:28:01 +0800 Subject: [PATCH] print detail error --- rqalpha/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rqalpha/main.py b/rqalpha/main.py index 43156d6c2..cdf131b73 100644 --- a/rqalpha/main.py +++ b/rqalpha/main.py @@ -234,8 +234,8 @@ def run(config, source_code=None, user_funcs=None): def _exception_handler(e): user_system_log.exception(_(u"strategy execute exception")) + user_system_log.error(e.error) if not is_user_exc(e.error.exc_val): - system_log.exception(_(u"strategy execute exception")) return const.EXIT_CODE.EXIT_INTERNAL_ERROR return const.EXIT_CODE.EXIT_USER_ERROR