bugfix: debug or trace logging level now properly logs all worker loops

This commit is contained in:
Lucien Luc 2024-07-25 13:45:01 -07:00
parent bbc0541883
commit 74fc09a0be

View file

@ -1205,8 +1205,8 @@ public class Worker implements Runnable {
private void resetInfoLogging() {
if (infoReporting) {
// We just logged at INFO level for a pass through worker loop
if (LOG.isInfoEnabled()) {
// We just logged at minimum INFO level for a pass through worker loop
if (!LOG.isDebugEnabled() || !LOG.isTraceEnabled()) {
infoReporting = false;
nextReportTime = System.currentTimeMillis() + reportIntervalMillis;
} // else is DEBUG or TRACE so leave reporting true