1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-22 22:21:18 +00:00

Log thread ID

This commit is contained in:
M66B 2019-11-09 14:13:18 +01:00
parent 582223be97
commit 9ff0a9004a
2 changed files with 3 additions and 3 deletions

View file

@ -231,7 +231,7 @@ class Core {
if (op.message != null) if (op.message != null)
crumb.put("message", Long.toString(op.message)); crumb.put("message", Long.toString(op.message));
crumb.put("similar", TextUtils.join(",", sids)); crumb.put("similar", TextUtils.join(",", sids));
crumb.put("thread", Thread.currentThread().getName()); crumb.put("thread", Thread.currentThread().getName() + ":" + Thread.currentThread().getId());
crumb.put("free", Integer.toString(Log.getFreeMemMb())); crumb.put("free", Integer.toString(Log.getFreeMemMb()));
Log.breadcrumb("start operation", crumb); Log.breadcrumb("start operation", crumb);
@ -362,7 +362,7 @@ class Core {
} }
} }
crumb.put("thread", Thread.currentThread().getName()); crumb.put("thread", Thread.currentThread().getName() + ":" + Thread.currentThread().getId());
crumb.put("free", Integer.toString(Log.getFreeMemMb())); crumb.put("free", Integer.toString(Log.getFreeMemMb()));
Log.breadcrumb("end operation", crumb); Log.breadcrumb("end operation", crumb);

View file

@ -300,7 +300,7 @@ public class Log {
public boolean run(@NonNull Error error) { public boolean run(@NonNull Error error) {
error.addToTab("extra", "installer", installer == null ? "-" : installer); error.addToTab("extra", "installer", installer == null ? "-" : installer);
error.addToTab("extra", "fingerprint", fingerprint); error.addToTab("extra", "fingerprint", fingerprint);
error.addToTab("extra", "thread", Thread.currentThread().getName()); error.addToTab("extra", "thread", Thread.currentThread().getName() + ":" + Thread.currentThread().getId());
error.addToTab("extra", "free", Log.getFreeMemMb()); error.addToTab("extra", "free", Log.getFreeMemMb());
error.addToTab("extra", "optimizing", (ignoringOptimizations != null && !ignoringOptimizations)); error.addToTab("extra", "optimizing", (ignoringOptimizations != null && !ignoringOptimizations));