From: <aye...@us...> - 2009-08-18 05:52:11
|
Revision: 4697 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4697&view=rev Author: ayenderahien Date: 2009-08-18 05:51:57 +0000 (Tue, 18 Aug 2009) Log Message: ----------- Will now log the session factory that opened the session Modified Paths: -------------- branches/2.1.x/nhibernate/src/NHibernate/Impl/SessionFactoryImpl.cs branches/2.1.x/nhibernate/src/NHibernate/Impl/SessionImpl.cs Modified: branches/2.1.x/nhibernate/src/NHibernate/Impl/SessionFactoryImpl.cs =================================================================== --- branches/2.1.x/nhibernate/src/NHibernate/Impl/SessionFactoryImpl.cs 2009-08-18 05:19:22 UTC (rev 4696) +++ branches/2.1.x/nhibernate/src/NHibernate/Impl/SessionFactoryImpl.cs 2009-08-18 05:51:57 UTC (rev 4697) @@ -1170,6 +1170,7 @@ } #region NHibernate specific + public string TryGetGuessEntityName(System.Type implementor) { string result; @@ -1177,6 +1178,16 @@ return result; } + public string Name + { + get { return name; } + } + + public string Uuid + { + get { return uuid; } + } + #endregion } } \ No newline at end of file Modified: branches/2.1.x/nhibernate/src/NHibernate/Impl/SessionImpl.cs =================================================================== --- branches/2.1.x/nhibernate/src/NHibernate/Impl/SessionImpl.cs 2009-08-18 05:19:22 UTC (rev 4696) +++ branches/2.1.x/nhibernate/src/NHibernate/Impl/SessionImpl.cs 2009-08-18 05:51:57 UTC (rev 4697) @@ -226,7 +226,8 @@ if (log.IsDebugEnabled) { - log.Debug(string.Format("[session-id={0}] opened session at timestamp:{1}", SessionId, timestamp)); + log.DebugFormat("[session-id={0}] opened session at timestamp: {1}, for session factory: [{2}/{3}]", + SessionId, timestamp, factory.Name, factory.Uuid); } CheckAndUpdateSessionStatus(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |