mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-26 11:51:10 +01:00
Add logging around the message processing lock.
This commit is contained in:
committed by
Alan Evans
parent
32aea8d154
commit
8f7f836598
@@ -113,7 +113,14 @@ public class IncomingMessageProcessor {
|
||||
|
||||
stopwatch.split("queue-check");
|
||||
|
||||
long ownerThreadId = DatabaseSessionLock.INSTANCE.getLikeyOwnerThreadId();
|
||||
if (ownerThreadId != DatabaseSessionLock.NO_OWNER && ownerThreadId != Thread.currentThread().getId()) {
|
||||
Log.i(TAG, "It is likely that some other thread has this lock. Owner: " + ownerThreadId + ", Us: " + Thread.currentThread().getId());
|
||||
}
|
||||
|
||||
try (SignalSessionLock.Lock unused = DatabaseSessionLock.INSTANCE.acquire()) {
|
||||
Log.i(TAG, "Acquired lock while processing message " + envelope.getTimestamp() + ".");
|
||||
|
||||
DecryptionResult result = MessageDecryptionUtil.decrypt(context, envelope);
|
||||
stopwatch.split("decrypt");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user