1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-28 18:49:56 +02:00

Include thread id in debug log

This commit is contained in:
Erik Johansson
2018-07-04 00:14:56 +02:00
parent 7e7d923810
commit 5e62c0afc5

View File

@@ -80,8 +80,9 @@ public class AboutPreferences extends PreferenceFragment {
@Override
protected void log(int priority, String tag, String message, Throwable t) {
writer.printf("%s %s %s: %s\n",
format.format(new Date()), priorityToString(priority), tag, message);
final long id = Thread.currentThread().getId();
writer.printf("%s %s [%d] %s: %s\n",
format.format(new Date()), priorityToString(priority), id, tag, message);
}
}