mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-30 01:26:49 +00:00
Reduce usage of Log.w()
This commit is contained in:
@@ -13,8 +13,8 @@ public class EarlyReceiptCache {
|
||||
private final LRUCache<Long, Map<Address, Long>> cache = new LRUCache<>(100);
|
||||
|
||||
public synchronized void increment(long timestamp, Address origin) {
|
||||
Log.w(TAG, this+"");
|
||||
Log.w(TAG, String.format("Early receipt: (%d, %s)", timestamp, origin.serialize()));
|
||||
Log.i(TAG, this+"");
|
||||
Log.i(TAG, String.format("Early receipt: (%d, %s)", timestamp, origin.serialize()));
|
||||
|
||||
Map<Address, Long> receipts = cache.get(timestamp);
|
||||
|
||||
@@ -36,8 +36,8 @@ public class EarlyReceiptCache {
|
||||
public synchronized Map<Address, Long> remove(long timestamp) {
|
||||
Map<Address, Long> receipts = cache.remove(timestamp);
|
||||
|
||||
Log.w(TAG, this+"");
|
||||
Log.w(TAG, String.format("Checking early receipts (%d): %d", timestamp, receipts == null ? 0 : receipts.size()));
|
||||
Log.i(TAG, this+"");
|
||||
Log.i(TAG, String.format("Checking early receipts (%d): %d", timestamp, receipts == null ? 0 : receipts.size()));
|
||||
|
||||
return receipts != null ? receipts : new HashMap<>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user