wangwei 6 年之前
父節點
當前提交
a25e0db0f0
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/main/java/cn/com/qmth/examcloud/web/bootstrap/AppBootstrap.java

+ 3 - 1
src/main/java/cn/com/qmth/examcloud/web/bootstrap/AppBootstrap.java

@@ -23,6 +23,7 @@ import cn.com.qmth.examcloud.commons.util.JsonUtil;
 import cn.com.qmth.examcloud.commons.util.OKHttpUtil;
 import cn.com.qmth.examcloud.commons.util.PropertiesUtil;
 import cn.com.qmth.examcloud.commons.util.StringUtil;
+import cn.com.qmth.examcloud.commons.util.Util;
 import cn.com.qmth.examcloud.web.cloud.AppSelf;
 import cn.com.qmth.examcloud.web.cloud.AppSelfHolder;
 import okhttp3.Response;
@@ -105,7 +106,8 @@ public class AppBootstrap {
 			context = SpringApplication.run(primarySource, newArgs);
 			noticeConfigCenter("success");
 		} catch (Exception e) {
-			noticeConfigCenter("failure:" + e.getMessage());
+			String stackTrace = Util.getStackTrace(e);
+			noticeConfigCenter("failure:\n" + stackTrace);
 			log.error("fail to run spring app.", e);
 			System.exit(-1);
 		}