[Minor] only log async update if above threshold

This commit is contained in:
Robert von Burg 2023-07-24 13:37:20 +02:00
parent ef1cd845b7
commit b258ec76a8
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 1 additions and 1 deletions

View File

@ -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)));
}