This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-4.4.x in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.4.x by this push: new 40688788563 CAMEL-21303: camel-core - Tone down logging noise for IOHelper 40688788563 is described below commit 40688788563ff7293215f27555541fb2881f4507 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Wed Oct 2 14:35:31 2024 +0200 CAMEL-21303: camel-core - Tone down logging noise for IOHelper --- .../src/main/java/org/apache/camel/util/IOHelper.java | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/core/camel-util/src/main/java/org/apache/camel/util/IOHelper.java b/core/camel-util/src/main/java/org/apache/camel/util/IOHelper.java index 6556a8c89df..602369d0827 100644 --- a/core/camel-util/src/main/java/org/apache/camel/util/IOHelper.java +++ b/core/camel-util/src/main/java/org/apache/camel/util/IOHelper.java @@ -276,9 +276,9 @@ public final class IOHelper { log = LOG; } if (name != null) { - log.warn("Cannot force FileChannel: {}. Reason: {}", name, e.getMessage(), e); + log.debug("Cannot force FileChannel: {}. Reason: {}", name, e.getMessage(), e); } else { - log.warn("Cannot force FileChannel. Reason: {}", e.getMessage(), e); + log.debug("Cannot force FileChannel. Reason: {}", e.getMessage(), e); } } } @@ -302,9 +302,9 @@ public final class IOHelper { log = LOG; } if (name != null) { - log.warn("Cannot sync FileDescriptor: {}. Reason: {}", name, e.getMessage(), e); + log.debug("Cannot sync FileDescriptor: {}. Reason: {}", name, e.getMessage(), e); } else { - log.warn("Cannot sync FileDescriptor. Reason: {}", e.getMessage(), e); + log.debug("Cannot sync FileDescriptor. Reason: {}", e.getMessage(), e); } } } @@ -331,9 +331,9 @@ public final class IOHelper { log = LOG; } if (name != null) { - log.warn("Cannot flush Writer: {}. Reason: {}", name, e.getMessage(), e); + log.debug("Cannot flush Writer: {}. Reason: {}", name, e.getMessage(), e); } else { - log.warn("Cannot flush Writer. Reason: {}", e.getMessage(), e); + log.debug("Cannot flush Writer. Reason: {}", e.getMessage(), e); } } force(os, name, log); @@ -359,9 +359,9 @@ public final class IOHelper { log = LOG; } if (name != null) { - log.warn("Cannot close: {}. Reason: {}", name, e.getMessage(), e); + log.debug("Cannot close: {}. Reason: {}", name, e.getMessage(), e); } else { - log.warn("Cannot close. Reason: {}", e.getMessage(), e); + log.debug("Cannot close. Reason: {}", e.getMessage(), e); } } } @@ -370,8 +370,7 @@ public final class IOHelper { /** * Closes the given resource if it is available and don't catch the exception * - * @param closeable the object to close - * @throws IOException + * @param closeable the object to close */ public static void closeWithException(Closeable closeable) throws IOException { if (closeable != null) {