mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-22 01:08:05 +01:00
Log exceptions when persisting messages.
This commit is contained in:
committed by
Jon Chambers
parent
e873d55cd3
commit
3e02c574e7
@@ -65,7 +65,13 @@ public class MessagePersister implements Managed {
|
||||
persistQueuesFuture.cancel(false);
|
||||
}
|
||||
|
||||
persistQueuesFuture = scheduledExecutorService.scheduleWithFixedDelay(() -> this.persistNextQueues(Instant.now()), 0, 100, TimeUnit.MILLISECONDS);
|
||||
persistQueuesFuture = scheduledExecutorService.scheduleWithFixedDelay(() -> {
|
||||
try {
|
||||
persistNextQueues(Instant.now());
|
||||
} catch (final Exception e) {
|
||||
logger.warn("Failed to persist queues", e);
|
||||
}
|
||||
}, 0, 100, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user