Logging added for debugging failing unit test

This commit is contained in:
BoykoAlex
2019-11-15 13:05:14 -05:00
parent 120b88a2d7
commit 58a40ae286

View File

@@ -106,6 +106,7 @@ public final class CompilationUnitCache implements DocumentContentProvider {
@Override
public void deleted(IJavaProject project) {
logger.info("CU Cache: deleted project {}", project.getElementName());
CompletableFuture.runAsync(() -> {
writeLock.lock();
try {
@@ -118,6 +119,7 @@ public final class CompilationUnitCache implements DocumentContentProvider {
@Override
public void created(IJavaProject project) {
logger.info("CU Cache: created project {}", project.getElementName());
CompletableFuture.runAsync(() -> {
writeLock.lock();
try {
@@ -132,6 +134,7 @@ public final class CompilationUnitCache implements DocumentContentProvider {
@Override
public void changed(IJavaProject project) {
logger.info("CU Cache: changed project {}", project.getElementName());
CompletableFuture.runAsync(() -> {
writeLock.lock();
try {
@@ -147,6 +150,7 @@ public final class CompilationUnitCache implements DocumentContentProvider {
if (this.projectObserver != null) {
this.projectObserver.addListener(projectListener);
logger.info("CU Cache: Adding project listener");
}
}
@@ -154,6 +158,7 @@ public final class CompilationUnitCache implements DocumentContentProvider {
public void dispose() {
if (projectObserver != null) {
projectObserver.removeListener(projectListener);
logger.info("Dispose CU Cache: Removing project listener");
}
}