Add informative log message.
Some checks failed
Java CI with Gradle / build (push) Has been cancelled

This commit is contained in:
Michael Lipp 2024-01-12 23:13:16 +01:00
parent d85c957b33
commit 2d9d8de357

View file

@ -219,6 +219,8 @@ public class VmWatcher extends Component {
"PMD.AvoidCatchingThrowable", "PMD.AvoidCatchingGenericException" })
var watcher = new Thread(() -> {
try {
logger.info(() -> "Watching objects created from "
+ crd.getName() + "." + VM_OP_GROUP + "/" + version);
// Watch sometimes terminates without apparent reason.
while (true) {
Instant startedAt = Instant.now();