Skip to content

Commit 2887349

Browse files
committed
Fixes #169. Set logging decorator to all caches.
1 parent 772d200 commit 2887349

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/apache/ibatis/mapping/CacheBuilder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ public Cache build() {
9191
setCacheProperties(cache);
9292
}
9393
cache = setStandardDecorators(cache);
94+
} else if (!LoggingCache.class.isAssignableFrom(cache.getClass())) {
95+
cache = new LoggingCache(cache);
9496
}
9597
return cache;
9698
}

0 commit comments

Comments
 (0)