forked from Qortal/qortal
Log noise: don't log zero NTP offsets or unimplemented transaction types
This commit is contained in:
parent
e0e9673837
commit
3ef4711c27
@ -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 {
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user