mirror of https://github.com/apache/nifi.git
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:
parent
5b82b735ab
commit
f54e146561
|
@ -223,7 +223,7 @@ public class FTPTransfer implements FileTransfer {
|
|||
try {
|
||||
listing.addAll(getListing(newFullForwardPath, depth + 1, maxResults - count));
|
||||
} 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -252,7 +252,7 @@ public class SFTPTransfer implements FileTransfer {
|
|||
try {
|
||||
getListing(newFullForwardPath, depth + 1, maxResults, listing);
|
||||
} 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue