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

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


The following commit(s) were added to refs/heads/master by this push:
     new 28d019c  CAMEL-13233: Add trace logging for absolute path in file 
consumer
28d019c is described below

commit 28d019ce694079d30cc0fda80a1272ebb3af2f2a
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Wed Oct 30 13:13:28 2019 +0100

    CAMEL-13233: Add trace logging for absolute path in file consumer
---
 .../src/main/java/org/apache/camel/component/file/FileConsumer.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/components/camel-file/src/main/java/org/apache/camel/component/file/FileConsumer.java
 
b/components/camel-file/src/main/java/org/apache/camel/component/file/FileConsumer.java
index 1634eee..220ba4f 100644
--- 
a/components/camel-file/src/main/java/org/apache/camel/component/file/FileConsumer.java
+++ 
b/components/camel-file/src/main/java/org/apache/camel/component/file/FileConsumer.java
@@ -67,7 +67,9 @@ public class FileConsumer extends GenericFileConsumer<File> {
             return true;
         }
 
-        log.trace("Polling directory: {}", directory.getPath());
+        if (log.isTraceEnabled()) {
+            log.trace("Polling directory: {}, absolute path: {}", 
directory.getPath(), directory.getAbsolutePath());
+        }
         File[] dirFiles = directory.listFiles();
         if (dirFiles == null || dirFiles.length == 0) {
             // no files in this directory to poll

Reply via email to