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:
committed by
Artem Bilan
parent
41264110ce
commit
0a7c77d853
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user