mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-20 07:21:40 +02:00
Synchronize log method
To avoid interleaved log messages as seen in #352.
This commit is contained in:
@@ -79,7 +79,7 @@ public class AboutPreferences extends PreferenceFragment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void log(int priority, String tag, String message, Throwable t) {
|
protected synchronized void log(int priority, String tag, String message, Throwable t) {
|
||||||
final long id = Thread.currentThread().getId();
|
final long id = Thread.currentThread().getId();
|
||||||
writer.printf("%s %s [%d] %s: %s\n",
|
writer.printf("%s %s [%d] %s: %s\n",
|
||||||
format.format(new Date()), priorityToString(priority), id, tag, message);
|
format.format(new Date()), priorityToString(priority), id, tag, message);
|
||||||
|
Reference in New Issue
Block a user