diff options
author | Harald Musum <musum@yahooinc.com> | 2023-03-09 10:48:35 +0100 |
---|---|---|
committer | Harald Musum <musum@yahooinc.com> | 2023-03-09 10:48:35 +0100 |
commit | 1a019c274a47cddb569401f15aa7c3a68544458d (patch) | |
tree | 30c2c0a9bd8b91c8993f98239c94a19943953b36 /container-core | |
parent | a7a92a49a4e52c6153b0deddcb243e49e743a74d (diff) |
Log only when there actually are bundles to uninstall
Diffstat (limited to 'container-core')
-rw-r--r-- | container-core/src/main/java/com/yahoo/container/core/config/ApplicationBundleLoader.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/core/config/ApplicationBundleLoader.java b/container-core/src/main/java/com/yahoo/container/core/config/ApplicationBundleLoader.java index 66604966c8a..ed9eb229074 100644 --- a/container-core/src/main/java/com/yahoo/container/core/config/ApplicationBundleLoader.java +++ b/container-core/src/main/java/com/yahoo/container/core/config/ApplicationBundleLoader.java @@ -96,7 +96,8 @@ public class ApplicationBundleLoader { */ private Set<Bundle> commitBundles() { var bundlesToUninstall = new LinkedHashSet<>(obsoleteBundles.values()); - log.info("Bundles to be uninstalled from previous generation: " + bundlesToUninstall); + if (bundlesToUninstall.size() > 0) + log.info("Bundles to be uninstalled from previous generation: " + bundlesToUninstall); bundlesFromNewGeneration = Map.of(); obsoleteBundles = Map.of(); |