mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Do not log size as we don't want to call potentially expensive toProtoMessage method
This commit is contained in:
parent
b748bffbfe
commit
c7f23e8deb
1 changed files with 2 additions and 3 deletions
|
@ -117,12 +117,11 @@ public abstract class StoreService<T extends PersistableEnvelope> {
|
|||
T persisted = persistenceManager.getPersisted(fileName);
|
||||
if (persisted != null) {
|
||||
store = persisted;
|
||||
|
||||
int length = store.toProtoMessage().toByteArray().length;
|
||||
/* int length = store.toProtoMessage().getSerializedSize();
|
||||
double size = length > 1_000_000D ? length / 1_000_000D : length / 1_000D;
|
||||
String unit = length > 1_000_000D ? "MB" : "KB";
|
||||
log.info("{}: size of {}: {} {}", this.getClass().getSimpleName(),
|
||||
persisted.getClass().getSimpleName(), size, unit);
|
||||
persisted.getClass().getSimpleName(), size, unit);*/
|
||||
} else {
|
||||
store = createStore();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue