From: <aye...@us...> - 2009-05-22 00:51:08
|
Revision: 4351 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4351&view=rev Author: ayenderahien Date: 2009-05-22 00:51:01 +0000 (Fri, 22 May 2009) Log Message: ----------- Will log collection hit / miss even if generated_stats = false Modified Paths: -------------- trunk/nhibernate/src/NHibernate/Event/Default/DefaultInitializeCollectionEventListener.cs Modified: trunk/nhibernate/src/NHibernate/Event/Default/DefaultInitializeCollectionEventListener.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Event/Default/DefaultInitializeCollectionEventListener.cs 2009-05-20 15:50:11 UTC (rev 4350) +++ trunk/nhibernate/src/NHibernate/Event/Default/DefaultInitializeCollectionEventListener.cs 2009-05-22 00:51:01 UTC (rev 4351) @@ -88,17 +88,24 @@ if (ce == null) { factory.StatisticsImplementor.SecondLevelCacheMiss(persister.Cache.RegionName); - log.DebugFormat("Collection cache miss: {0}", ck); } else { factory.StatisticsImplementor.SecondLevelCacheHit(persister.Cache.RegionName); - log.DebugFormat("Collection cache hit: {0}", ck); } } if (ce == null) { + log.DebugFormat("Collection cache miss: {0}", ck); + } + else + { + log.DebugFormat("Collection cache hit: {0}", ck); + } + + if (ce == null) + { return false; } else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |