Make a couple log4net instances static readonly.

0.6.1-post-fixes
Jeff Ames 2008-12-03 05:18:28 +00:00
parent d324389dd9
commit ab83713a2c
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ namespace OpenSim.Region.DataSnapshot
private String m_directory = "unyuu"; //not an attempt at adding RM references to core SVN, honest
private Dictionary<Scene, bool> m_scenes = null;
private List<IDataSnapshotProvider> m_providers = null;
private log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
private Dictionary<String, String> m_gridinfo = null;
private bool m_cacheEnabled = true;
private string m_listener_port = "9000"; //TODO: Set default port over 9000

View File

@ -45,7 +45,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Inventory.Archiver
{
public class InventoryArchiveReadRequest
{
private static ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
protected Scene scene;
protected TarArchiveReader archive;