ARTEMIS-1642 Add log info to FileStoreMonitor
Adding log info in case that an IOException is thrown from the underlying file system to provide information for debugging.
This commit is contained in:
parent
5c6f0c6df3
commit
647954bf5a
|
@ -70,7 +70,12 @@ public class FileStoreMonitor extends ActiveMQScheduledComponent {
|
||||||
synchronized (monitorLock) {
|
synchronized (monitorLock) {
|
||||||
// JDBC storage may return this as null, and we may need to ignore it
|
// JDBC storage may return this as null, and we may need to ignore it
|
||||||
if (file != null && file.exists()) {
|
if (file != null && file.exists()) {
|
||||||
|
try {
|
||||||
addStore(Files.getFileStore(file.toPath()));
|
addStore(Files.getFileStore(file.toPath()));
|
||||||
|
} catch (IOException e) {
|
||||||
|
logger.error("Error getting file store for " + file.getAbsolutePath(), e);
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue