Increase thread string length to 5 in logs.

fork-5.53.8
Greyson Parrelli 2021-02-03 17:17:14 -05:00
rodzic 94b631ccfe
commit a4ec31eebe
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -159,9 +159,9 @@ public final class PersistentLogger extends Log.Logger {
if (cachedThreadString.get() == null) { if (cachedThreadString.get() == null) {
if (Looper.myLooper() == Looper.getMainLooper()) { if (Looper.myLooper() == Looper.getMainLooper()) {
threadString = "main"; threadString = "main ";
} else { } else {
threadString = String.format("%-4s", Thread.currentThread().getId()); threadString = String.format("%-5s", Thread.currentThread().getId());
} }
cachedThreadString.set(threadString); cachedThreadString.set(threadString);