From 7da4776e8121ebec8f79dd20f43f6da2a4b00a9b Mon Sep 17 00:00:00 2001 From: Claus Ibsen Date: Sun, 20 Sep 2026 23:04:50 +0200 Subject: [PATCH 1/2] CAMEL-24855: the file consumer says at INFO when it creates the starting directory it consumes from, so a run that reads a directory that was not there is not silent Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01Bp3538HRBPMQkb5ta9xRaj --- .../java/org/apache/camel/component/file/FileConsumer.java | 4 ++++ 1 file changed, 4 insertions(+) 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 80131f51cae7d..e0953bfc2a4e1 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 @@ -458,6 +458,10 @@ private void doCreateStartDirectory(File file) { boolean created = operations.buildDirectory(file.getPath(), absolute); if (!created) { LOG.warn("Cannot auto create starting directory: {}", file); + } else { + // said at INFO: a consumer of a directory that was not there finds nothing and waits, and without this + // line nothing in the log says why (CAMEL-24855) + LOG.info("Created starting directory: {} (it did not exist): waiting for files", file); } } From 83f3887a9f1bba65a7739cb8e873ab73798a6831 Mon Sep 17 00:00:00 2001 From: Claus Ibsen Date: Sun, 20 Sep 2026 23:15:20 +0200 Subject: [PATCH 2/2] CAMEL-24855: shorter log line and comment Co-Authored-By: Claude Opus 5 (1M context) Signed-off-by: Claus Ibsen --- .../java/org/apache/camel/component/file/FileConsumer.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 e0953bfc2a4e1..866dee84955c3 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 @@ -459,9 +459,8 @@ private void doCreateStartDirectory(File file) { if (!created) { LOG.warn("Cannot auto create starting directory: {}", file); } else { - // said at INFO: a consumer of a directory that was not there finds nothing and waits, and without this - // line nothing in the log says why (CAMEL-24855) - LOG.info("Created starting directory: {} (it did not exist): waiting for files", file); + // CAMEL-24855: INFO so the log says why the consumer is waiting on an empty directory + LOG.info("Auto-created starting directory: {}; waiting for files", file); } }