[Minor] only log async update if above threshold
This commit is contained in:
parent
ef1cd845b7
commit
b258ec76a8
|
@ -380,7 +380,7 @@ public class DefaultPlcHandler extends StrolchComponent implements PlcHandler, P
|
|||
logger.error("Failed to update PlcAddress " + addressId + " with new value " + value, e);
|
||||
}
|
||||
|
||||
if (this.verbose)
|
||||
if (this.verbose && (nanoTime() - s > MILLISECONDS.toNanos(SILENT_THRESHOLD)))
|
||||
logger.info("async update " + address.toKey() + " took " + (formatNanoDuration(nanoTime() - s)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue