logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpsen...@apache.org
Subject svn commit: r1489819 - /logging/log4net/trunk/src/Config/XmlConfigurator.cs
Date Wed, 05 Jun 2013 11:40:52 GMT
Author: dpsenner
Date: Wed Jun  5 11:40:52 2013
New Revision: 1489819

URL: http://svn.apache.org/r1489819
Log:
LOG4NET-335 fix InternalConfigureAndWatch to allow exactly one watch handler for every config
file instead of one watch handler for every repository

Modified:
    logging/log4net/trunk/src/Config/XmlConfigurator.cs

Modified: logging/log4net/trunk/src/Config/XmlConfigurator.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/Config/XmlConfigurator.cs?rev=1489819&r1=1489818&r2=1489819&view=diff
==============================================================================
--- logging/log4net/trunk/src/Config/XmlConfigurator.cs (original)
+++ logging/log4net/trunk/src/Config/XmlConfigurator.cs Wed Jun  5 11:40:52 2013
@@ -880,18 +880,18 @@ namespace log4net.Config
                     {
                         // support multiple repositories each having their own watcher
                         ConfigureAndWatchHandler handler =
-                            (ConfigureAndWatchHandler)m_repositoryName2ConfigAndWatchHandler[repository.Name];
+							(ConfigureAndWatchHandler)m_repositoryName2ConfigAndWatchHandler[configFile.FullName];
 
                         if (handler != null)
                         {
-                            m_repositoryName2ConfigAndWatchHandler.Remove(repository.Name);
+							m_repositoryName2ConfigAndWatchHandler.Remove(configFile.FullName);
                             handler.Dispose();
                         }
 
                         // Create and start a watch handler that will reload the
                         // configuration whenever the config file is modified.
                         handler = new ConfigureAndWatchHandler(repository, configFile);
-                        m_repositoryName2ConfigAndWatchHandler[repository.Name] = handler;
+						m_repositoryName2ConfigAndWatchHandler[configFile.FullName] = handler;
                     }
 				}
 				catch(Exception ex)



Mime
View raw message