This commit is contained in:
Clebert Suconic 2018-01-31 18:20:32 -05:00
commit eb65b04d6d
1 changed files with 6 additions and 1 deletions

View File

@ -70,7 +70,12 @@ public class FileStoreMonitor extends ActiveMQScheduledComponent {
synchronized (monitorLock) {
// JDBC storage may return this as null, and we may need to ignore it
if (file != null && file.exists()) {
addStore(Files.getFileStore(file.toPath()));
try {
addStore(Files.getFileStore(file.toPath()));
} catch (IOException e) {
logger.error("Error getting file store for " + file.getAbsolutePath(), e);
throw e;
}
}
return this;
}