Skip to content

Commit 0a7c77d

Browse files
garyrussellartembilan
authored andcommitted
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.
1 parent 4126411 commit 0a7c77d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spring-integration-file/src/main/java/org/springframework/integration/file/remote/synchronizer/AbstractInboundFileSynchronizer.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,11 +343,12 @@ public void synchronizeToLocalDirectory(final File localDirectory, final int max
343343
}
344344
});
345345
if (this.logger.isDebugEnabled()) {
346-
this.logger.debug(transferred + " files transferred");
346+
this.logger.debug(transferred + " files transferred from '" + this.evaluatedRemoteDirectory + "'");
347347
}
348348
}
349349
catch (Exception e) {
350-
throw new MessagingException("Problem occurred while synchronizing remote to local directory", e);
350+
throw new MessagingException("Problem occurred while synchronizing '"
351+
+ this.evaluatedRemoteDirectory + "' to local directory", e);
351352
}
352353
}
353354

0 commit comments

Comments
 (0)