Skip to content

Commit 996163e

Browse files
committed
see 12/12 log
1 parent 82d2d09 commit 996163e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utilcode/src/main/java/com/blankj/utilcode/util/LogUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ public final class LogUtils {
9494
private static final String BOTTOM_BORDER = BOTTOM_CORNER + SIDE_DIVIDER + SIDE_DIVIDER;
9595
private static final int MAX_LEN = 4000;
9696
private static final Format FORMAT = new SimpleDateFormat("MM-dd HH:mm:ss.SSS ", Locale.getDefault());
97+
private static final String NOTHING = "log nothing";
9798
private static final String NULL = "null";
9899
private static final String ARGS = "args";
99100
private static final Config CONFIG = new Config();
@@ -300,7 +301,7 @@ private static String processBody(final int type, final Object... contents) {
300301
body = sb.toString();
301302
}
302303
}
303-
return body;
304+
return body.length() == 0 ? NOTHING : body;
304305
}
305306

306307
private static String formatJson(String json) {

0 commit comments

Comments
 (0)