Fix prekey log output

This commit is contained in:
AsamK 2023-08-20 19:40:42 +02:00
parent b3f550ee68
commit e0a326f15b

View file

@ -46,16 +46,16 @@ public class PreKeyHelper {
preKeyCounts = new OneTimePreKeyCounts(0, 0);
}
if (preKeyCounts.getEcCount() < ServiceConfig.PREKEY_MINIMUM_COUNT) {
logger.debug("Refreshing {} ec pre keys, because only {} of {} pre keys remain",
logger.debug("Refreshing {} ec pre keys, because only {} of min {} pre keys remain",
serviceIdType,
preKeyCounts.getEcCount(),
ServiceConfig.PREKEY_MINIMUM_COUNT);
refreshPreKeys(serviceIdType);
}
if (preKeyCounts.getKyberCount() < ServiceConfig.PREKEY_MINIMUM_COUNT) {
logger.debug("Refreshing {} kyber pre keys, because only {} of {} pre keys remain",
logger.debug("Refreshing {} kyber pre keys, because only {} of min {} pre keys remain",
serviceIdType,
preKeyCounts.getEcCount(),
preKeyCounts.getKyberCount(),
ServiceConfig.PREKEY_MINIMUM_COUNT);
refreshKyberPreKeys(serviceIdType);
}