Skip to content

Commit

Permalink
Fixes mybatis#169. Set logging decorator to all caches.
Browse files Browse the repository at this point in the history
  • Loading branch information
emacarron committed Mar 30, 2014
1 parent 772d200 commit 2887349
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/apache/ibatis/mapping/CacheBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ public Cache build() {
setCacheProperties(cache);
}
cache = setStandardDecorators(cache);
} else if (!LoggingCache.class.isAssignableFrom(cache.getClass())) {
cache = new LoggingCache(cache);
}
return cache;
}
Expand Down

0 comments on commit 2887349

Please sign in to comment.