wangwei 6 tahun lalu
induk
melakukan
a25e0db0f0

+ 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);
 		}