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.
This commit is contained in:
Gary Russell
2018-10-11 08:44:25 -04:00
committed by Artem Bilan
parent 41264110ce
commit 0a7c77d853

View File

@@ -343,11 +343,12 @@ public abstract class AbstractInboundFileSynchronizer<F>
}
});
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);
}
}