You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2024/10/12 16:23:24 UTC

(camel) 02/02: Polished

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 8ff30af1ac30f97c75cdb994558974d4199317a4
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sat Oct 12 18:21:46 2024 +0200

    Polished
---
 .../apache/camel/support/startup/LoggingStartupStepRecorder.java   | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/core/camel-support/src/main/java/org/apache/camel/support/startup/LoggingStartupStepRecorder.java b/core/camel-support/src/main/java/org/apache/camel/support/startup/LoggingStartupStepRecorder.java
index bed3f27691a..e849e1299a1 100644
--- a/core/camel-support/src/main/java/org/apache/camel/support/startup/LoggingStartupStepRecorder.java
+++ b/core/camel-support/src/main/java/org/apache/camel/support/startup/LoggingStartupStepRecorder.java
@@ -45,7 +45,12 @@ public class LoggingStartupStepRecorder extends DefaultStartupStepRecorder {
         String pad = StringHelper.padString(step.getLevel());
         String out = String.format("%s", pad + step.getType());
         String out2 = String.format("%6s ms", delta);
-        String out3 = String.format("%s(%s)", step.getDescription(), step.getName());
+        String out3;
+        if (step.getName() != null) {
+            out3 = String.format("%s(%s)", step.getDescription(), step.getName());
+        } else {
+            out3 = step.getDescription();
+        }
         return String.format("%s : %s - %s", out2, out, out3);
     }