From 3e2a5af6fd8dcac55d639701e69865ac8c58d38d Mon Sep 17 00:00:00 2001 From: "Michael N. Lipp" Date: Sat, 12 Aug 2023 15:05:56 +0200 Subject: [PATCH] Improve logging. --- example/{ => local-path}/Readme.md | 0 example/{ => local-path}/kustomization.yaml | 0 example/{ => local-path}/test-vm.yaml | 0 .../src/org/jdrupes/vmoperator/manager/VmWatcher.java | 6 +++--- 4 files changed, 3 insertions(+), 3 deletions(-) rename example/{ => local-path}/Readme.md (100%) rename example/{ => local-path}/kustomization.yaml (100%) rename example/{ => local-path}/test-vm.yaml (100%) diff --git a/example/Readme.md b/example/local-path/Readme.md similarity index 100% rename from example/Readme.md rename to example/local-path/Readme.md diff --git a/example/kustomization.yaml b/example/local-path/kustomization.yaml similarity index 100% rename from example/kustomization.yaml rename to example/local-path/kustomization.yaml diff --git a/example/test-vm.yaml b/example/local-path/test-vm.yaml similarity index 100% rename from example/test-vm.yaml rename to example/local-path/test-vm.yaml diff --git a/org.jdrupes.vmoperator.manager/src/org/jdrupes/vmoperator/manager/VmWatcher.java b/org.jdrupes.vmoperator.manager/src/org/jdrupes/vmoperator/manager/VmWatcher.java index c22b714..dfdcb30 100644 --- a/org.jdrupes.vmoperator.manager/src/org/jdrupes/vmoperator/manager/VmWatcher.java +++ b/org.jdrupes.vmoperator.manager/src/org/jdrupes/vmoperator/manager/VmWatcher.java @@ -216,12 +216,12 @@ public class VmWatcher extends Component { handleVmDefinitionChange(crd, item); } } catch (IllegalStateException e) { - logger.log(Level.FINE, e, () -> "Probem watching: " - + e.getMessage()); + logger.log(Level.FINE, e, () -> "Probem watching " + + "(retrying): " + e.getMessage()); } } } catch (IOException | ApiException e) { - logger.log(Level.FINE, e, () -> "Probem watching: " + logger.log(Level.SEVERE, e, () -> "Probem watching: " + e.getMessage()); } fire(new Stop());