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/01/24 10:00:37 UTC

(camel) branch camel-3.21.x updated: CAMEL-20356: camel-core - LoggerHelper returns wrong name for source code line precise. Thanks to Marco Bergsma for the patch.

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

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


The following commit(s) were added to refs/heads/camel-3.21.x by this push:
     new ed3982bef0f CAMEL-20356: camel-core - LoggerHelper returns wrong name for source code line precise. Thanks to Marco Bergsma for the patch.
ed3982bef0f is described below

commit ed3982bef0fa3ac72b3a41ba627b07aa89e36f93
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Jan 24 10:59:11 2024 +0100

    CAMEL-20356: camel-core - LoggerHelper returns wrong name for source code line precise. Thanks to Marco Bergsma for the patch.
---
 .../src/main/java/org/apache/camel/support/LoggerHelper.java            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/camel-support/src/main/java/org/apache/camel/support/LoggerHelper.java b/core/camel-support/src/main/java/org/apache/camel/support/LoggerHelper.java
index c2c1060d006..ba2b5edc759 100644
--- a/core/camel-support/src/main/java/org/apache/camel/support/LoggerHelper.java
+++ b/core/camel-support/src/main/java/org/apache/camel/support/LoggerHelper.java
@@ -57,7 +57,7 @@ public final class LoggerHelper {
                     // classname so let us only grab the name
                     int pos = name.lastIndexOf('.');
                     if (pos > 0) {
-                        name = name.substring(pos + 1);
+                        name = name.substring(0, pos);
                     }
                 }
                 if (line != -1) {