Reduce logging
authorMathieu <mbaudier@argeo.org>
Fri, 4 Nov 2022 07:03:42 +0000 (08:03 +0100)
committerMathieu <mbaudier@argeo.org>
Fri, 4 Nov 2022 07:03:42 +0000 (08:03 +0100)
org.argeo.init/src/org/argeo/init/osgi/OsgiBoot.java

index c26fad66817c3b654f1ea0e965d9025e556f0c2d..81efa33e33c8478eafbeeab09abde4ebd471f74e 100644 (file)
@@ -401,7 +401,8 @@ public class OsgiBoot implements OsgiBootConstants {
 
                // Start the framework level after level
                stages: for (int stage = initialStartLevel; stage <= activeStartLevel; stage++) {
-                       OsgiBootUtils.info("Starting stage " + stage + "...");
+                       if (OsgiBootUtils.isDebug())
+                               OsgiBootUtils.debug("Starting stage " + stage + "...");
                        final int nextStage = stage;
                        final CompletableFuture<FrameworkEvent> stageCompleted = new CompletableFuture<>();
                        ForkJoinPool.commonPool().execute(() -> {