mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-29 19:20:36 +02:00
Include thread id in debug log
This commit is contained in:
@@ -80,8 +80,9 @@ public class AboutPreferences extends PreferenceFragment {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void log(int priority, String tag, String message, Throwable t) {
|
protected void log(int priority, String tag, String message, Throwable t) {
|
||||||
writer.printf("%s %s %s: %s\n",
|
final long id = Thread.currentThread().getId();
|
||||||
format.format(new Date()), priorityToString(priority), tag, message);
|
writer.printf("%s %s [%d] %s: %s\n",
|
||||||
|
format.format(new Date()), priorityToString(priority), id, tag, message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user