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:23 UTC

(camel) branch camel-3.22.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.22.x
in repository https://gitbox.apache.org/repos/asf/camel.git


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

commit 7f89495593d62a925ef50af01742640c3f0d8031
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) {