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
The following commit(s) were added to refs/heads/main by this push:
new 9c4cfd3e212 CAMEL-20356: camel-core - LoggerHelper returns wrong name
for source code line precise. Thanks to Marco Bergsma for the patch.
9c4cfd3e212 is described below
commit 9c4cfd3e212b52a25d94485368781dfee0f3855f
Author: Claus Ibsen <[email protected]>
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 ef512e8bbcd..a871604bdc7 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
@@ -58,7 +58,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) {