You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/07/15 08:30:16 UTC

[camel] 02/02: changed log message as per review of my pull request

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

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

commit 96867d06374657e2fbf14f6b6129d78a3d95199d
Author: Dmitry Kriukov <dk...@ya.ru>
AuthorDate: Sun Jul 11 22:55:19 2021 +0300

    changed log message as per review of my pull request
---
 .../src/main/java/org/apache/camel/impl/engine/FileStateRepository.java | 2 +-
 .../camel/support/processor/idempotent/FileIdempotentRepository.java    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/FileStateRepository.java b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/FileStateRepository.java
index b0cc474..04eaac6 100644
--- a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/FileStateRepository.java
+++ b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/FileStateRepository.java
@@ -209,7 +209,7 @@ public class FileStateRepository extends ServiceSupport implements StateReposito
             if (parent != null) {
                 boolean mkdirsResult = parent.mkdirs();
                 if (!mkdirsResult) {
-                    LOG.error("mkdirs() failed for " + parent);
+                    LOG.error("Couldn't create the filestore at {} because creating the directory has failed", parent);
                 }
             }
             boolean created = FileUtil.createNewFile(fileStore);
diff --git a/core/camel-support/src/main/java/org/apache/camel/support/processor/idempotent/FileIdempotentRepository.java b/core/camel-support/src/main/java/org/apache/camel/support/processor/idempotent/FileIdempotentRepository.java
index 93cadeb..73bfeb0 100644
--- a/core/camel-support/src/main/java/org/apache/camel/support/processor/idempotent/FileIdempotentRepository.java
+++ b/core/camel-support/src/main/java/org/apache/camel/support/processor/idempotent/FileIdempotentRepository.java
@@ -464,7 +464,7 @@ public class FileIdempotentRepository extends ServiceSupport implements Idempote
             if (parent != null) {
                 boolean mkdirsResult = parent.mkdirs();
                 if (!mkdirsResult) {
-                    LOG.error("mkdirs() failed for " + parent);
+                    LOG.error("Couldn't create the filestore at {} because creating the directory has failed", parent);
                 }
             }
             boolean created = FileUtil.createNewFile(fileStore);