Skip to content

Commit 9becd49

Browse files
author
YangLang
committed
更新模板
1 parent 92d5870 commit 9becd49

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/xtu/plugin/flutter/base/utils/LogUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ public static void info(@NotNull String message) {
1717

1818
public static void error(@NotNull String entryPoint, @NotNull Exception exception) {
1919
LOG.error(entryPoint + " : " + exception.getMessage());
20-
String content = "message: " + exception.getMessage() + "\n" +
21-
"stackTrace: \n" + getStackTrace(exception);
20+
String content = String.format("message:\n%s\n\nerrorStack:\n%s", exception.getMessage(), getStackTrace(exception));
2221
AdviceManager.getInstance().submitAdvice(null, "error catch", content);
2322
}
2423

0 commit comments

Comments
 (0)