NIFI-4085 Add exception in log message when (S)FTP listing fails

This closes #1929.

Signed-off-by: Andy LoPresto <alopresto@apache.org>
This commit is contained in:
Pierre Villard 2017-06-19 19:39:28 +02:00 committed by Andy LoPresto
parent 5b82b735ab
commit f54e146561
No known key found for this signature in database
GPG Key ID: 6EC293152D90B61D
2 changed files with 2 additions and 2 deletions

View File

@ -223,7 +223,7 @@ public class FTPTransfer implements FileTransfer {
try { try {
listing.addAll(getListing(newFullForwardPath, depth + 1, maxResults - count)); listing.addAll(getListing(newFullForwardPath, depth + 1, maxResults - count));
} catch (final IOException e) { } catch (final IOException e) {
logger.error("Unable to get listing from " + newFullForwardPath + "; skipping this subdirectory"); logger.error("Unable to get listing from " + newFullForwardPath + "; skipping this subdirectory", e);
} }
} }

View File

@ -252,7 +252,7 @@ public class SFTPTransfer implements FileTransfer {
try { try {
getListing(newFullForwardPath, depth + 1, maxResults, listing); getListing(newFullForwardPath, depth + 1, maxResults, listing);
} catch (final IOException e) { } catch (final IOException e) {
logger.error("Unable to get listing from " + newFullForwardPath + "; skipping this subdirectory"); logger.error("Unable to get listing from " + newFullForwardPath + "; skipping this subdirectory", e);
} }
} }
} }