Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16572/Impl
Modified Files:
SessionFactoryImpl.cs
Log Message:
Some small debugging thing.
Index: SessionFactoryImpl.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl/SessionFactoryImpl.cs,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** SessionFactoryImpl.cs 29 Mar 2004 04:06:09 -0000 1.12
--- SessionFactoryImpl.cs 13 Apr 2004 14:59:17 -0000 1.13
***************
*** 5,8 ****
--- 5,9 ----
using System.Collections;
using System.Runtime.CompilerServices;
+ using System.Text;
using NHibernate.Cache;
***************
*** 94,98 ****
log.Info("building session factory");
! if ( log.IsDebugEnabled ) log.Debug("instantiating session factory with properties: " + properties);
this.interceptor = interceptor;
--- 95,105 ----
log.Info("building session factory");
! if ( log.IsDebugEnabled )
! {
! StringBuilder sb = new StringBuilder("instantiating session factory with properties: ");
! foreach(DictionaryEntry entry in properties)
! sb.AppendFormat("{0}={1};", entry.Key, ((string)entry.Key).IndexOf("connection_string")>0?"***":entry.Value);
! log.Debug(sb.ToString());
! }
this.interceptor = interceptor;
***************
*** 219,223 ****
querySubstitutions = PropertiesHelper.ToDictionary(Cfg.Environment.QuerySubstitutions, " ,=;:\n\t\r\f", properties);
! log.Info("Query language substitutions: " + querySubstitutions);
namedQueries = cfg.NamedQueries;
--- 226,236 ----
querySubstitutions = PropertiesHelper.ToDictionary(Cfg.Environment.QuerySubstitutions, " ,=;:\n\t\r\f", properties);
! if ( log.IsInfoEnabled )
! {
! StringBuilder sb = new StringBuilder("Query language substitutions: ");
! foreach(DictionaryEntry entry in querySubstitutions)
! sb.AppendFormat("{0}={1};", entry.Key, entry.Value);
! log.Info(sb.ToString());
! }
namedQueries = cfg.NamedQueries;
|