diff --git a/platform/lang-impl/src/com/intellij/util/indexing/MemoryIndexStorage.java b/platform/lang-impl/src/com/intellij/util/indexing/MemoryIndexStorage.java index 3c1047b60b15..93c8ab82f831 100644 --- a/platform/lang-impl/src/com/intellij/util/indexing/MemoryIndexStorage.java +++ b/platform/lang-impl/src/com/intellij/util/indexing/MemoryIndexStorage.java @@ -93,8 +93,11 @@ public class MemoryIndexStorage implements IndexStorage void clearCaches() { if (myMap.size() == 0) return; - String message = "Dropping caches for " + (myIndexId != null ? myIndexId:this) + ", number of items:" + myMap.size(); - if (DebugAssertions.DEBUG) FileBasedIndexImpl.LOG.info(message); + + if (DebugAssertions.DEBUG) { + String message = "Dropping caches for " + (myIndexId != null ? myIndexId:this) + ", number of items:" + myMap.size(); + FileBasedIndexImpl.LOG.info(message); + } for(ChangeTrackingValueContainer v:myMap.values()) { v.dropMergedData();