mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] add logging message when log caches deleted
This commit is contained in:
@@ -16,11 +16,13 @@
|
||||
package com.intellij.vcs.log.impl;
|
||||
|
||||
import com.intellij.ide.caches.CachesInvalidator;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.util.io.FileUtil;
|
||||
import com.intellij.util.ArrayUtil;
|
||||
import com.intellij.vcs.log.util.PersistentUtil;
|
||||
|
||||
public class VcsLogCachesInvalidator extends CachesInvalidator {
|
||||
private static final Logger LOG = Logger.getInstance(VcsLogCachesInvalidator.class);
|
||||
|
||||
public synchronized boolean isValid() {
|
||||
if (PersistentUtil.getCorruptionMarkerFile().exists()) {
|
||||
@@ -29,6 +31,9 @@ public class VcsLogCachesInvalidator extends CachesInvalidator {
|
||||
// if could not delete caches, ensure that corruption marker is still there
|
||||
FileUtil.createIfDoesntExist(PersistentUtil.getCorruptionMarkerFile());
|
||||
}
|
||||
else {
|
||||
LOG.debug("Deleted VCS Log caches at " + PersistentUtil.LOG_CACHE);
|
||||
}
|
||||
return deleted;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user