From 0a7c77d85387f8a074e1511f2f3f0c411fefe134 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Thu, 11 Oct 2018 08:44:25 -0400 Subject: [PATCH] INT-4534: Add remote directory to exception JIRA: https://jira.spring.io/browse/INT-4534 Include the remote directory in exception and debug log messages when synchronizing. --- .../remote/synchronizer/AbstractInboundFileSynchronizer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/synchronizer/AbstractInboundFileSynchronizer.java b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/synchronizer/AbstractInboundFileSynchronizer.java index 0fce2582e4..4994e0db5b 100644 --- a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/synchronizer/AbstractInboundFileSynchronizer.java +++ b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/synchronizer/AbstractInboundFileSynchronizer.java @@ -343,11 +343,12 @@ public abstract class AbstractInboundFileSynchronizer } }); if (this.logger.isDebugEnabled()) { - this.logger.debug(transferred + " files transferred"); + this.logger.debug(transferred + " files transferred from '" + this.evaluatedRemoteDirectory + "'"); } } catch (Exception e) { - throw new MessagingException("Problem occurred while synchronizing remote to local directory", e); + throw new MessagingException("Problem occurred while synchronizing '" + + this.evaluatedRemoteDirectory + "' to local directory", e); } }