do not log batch processing 0 mailbox entries

This commit is contained in:
woodser 2023-04-26 10:11:38 -04:00
parent 332da7535d
commit 6ed969addc

View file

@ -414,6 +414,8 @@ public class MailboxMessageService implements HashMapChangedListener, PersistedD
new Thread(() -> { new Thread(() -> {
try { try {
var mailboxItems = getMailboxItems(protectedMailboxStorageEntries); var mailboxItems = getMailboxItems(protectedMailboxStorageEntries);
if (!protectedMailboxStorageEntries.isEmpty())
log.info("Batch processing of {} mailbox entries took {} ms", log.info("Batch processing of {} mailbox entries took {} ms",
protectedMailboxStorageEntries.size(), protectedMailboxStorageEntries.size(),
System.currentTimeMillis() - ts); System.currentTimeMillis() - ts);