Log noise: don't log zero NTP offsets or unimplemented transaction types

This commit is contained in:
catbref 2020-02-04 12:16:34 +00:00
parent e0e9673837
commit 3ef4711c27
2 changed files with 5 additions and 2 deletions

View File

@ -389,7 +389,10 @@ public class Controller extends Thread {
Long ntpTime = NTP.getTime(); Long ntpTime = NTP.getTime();
if (ntpTime != null) { if (ntpTime != null) {
LOGGER.info(String.format("Adjusting system time by NTP offset: %dms", ntpTime - now)); if (ntpTime != now)
// Only log if non-zero offset
LOGGER.info(String.format("Adjusting system time by NTP offset: %dms", ntpTime - now));
ntpCheckTimestamp = now + NTP_POST_SYNC_CHECK_PERIOD; ntpCheckTimestamp = now + NTP_POST_SYNC_CHECK_PERIOD;
requestSysTrayUpdate = true; requestSysTrayUpdate = true;
} else { } else {

View File

@ -55,7 +55,7 @@ public class HSQLDBTransactionRepository implements TransactionRepository {
subclassInfo.clazz = Class.forName( subclassInfo.clazz = Class.forName(
String.join("", HSQLDBTransactionRepository.class.getPackage().getName(), ".", "HSQLDB", txType.className, "TransactionRepository")); String.join("", HSQLDBTransactionRepository.class.getPackage().getName(), ".", "HSQLDB", txType.className, "TransactionRepository"));
} catch (ClassNotFoundException e) { } catch (ClassNotFoundException e) {
LOGGER.debug(String.format("HSQLDBTransactionRepository subclass not found for transaction type \"%s\"", txType.name())); LOGGER.trace(String.format("HSQLDBTransactionRepository subclass not found for transaction type \"%s\"", txType.name()));
continue; continue;
} }