mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
some additional logging
This commit is contained in:
+2
-1
@@ -169,7 +169,7 @@ public class FSRecords implements Disposable, Forceable {
|
||||
}
|
||||
|
||||
if (myRecords.getInt(HEADER_CONNECTION_STATUS_OFFSET) != SAFELY_CLOSED_MAGIC) {
|
||||
throw new IOException("FS repostiory wasn't safely shut down");
|
||||
throw new IOException("FS repository wasn't safely shut down");
|
||||
}
|
||||
markDirty();
|
||||
}
|
||||
@@ -217,6 +217,7 @@ public class FSRecords implements Disposable, Forceable {
|
||||
}
|
||||
|
||||
private static void invalidateIndex() {
|
||||
LOG.info("Marking VFS as corrupted");
|
||||
FileUtil.createIfDoesntExist(new File(PathManager.getIndexRoot(), "corruption.marker"));
|
||||
}
|
||||
|
||||
|
||||
+2
@@ -65,7 +65,9 @@ public class PersistentFS extends ManagingFS implements ApplicationComponent {
|
||||
*/
|
||||
ShutDownTracker.getInstance().registerShutdownTask(new Runnable() {
|
||||
public void run() {
|
||||
LOG.info("VFS dispose started");
|
||||
myRecords.dispose();
|
||||
LOG.info("VFS dispose completed");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user