m_logs always need to be private static readonly otherwise we

get close errors.
0.6.0-stable
Sean Dague 2008-05-09 18:57:19 +00:00
parent 3900a165bc
commit 835e44b987
4 changed files with 4 additions and 4 deletions

View File

@ -38,7 +38,7 @@ namespace OpenSim.Region.DataSnapshot
{
private Scene m_scene = null;
private DataSnapshotManager m_externalData = null;
private ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
public DataRequestHandler(Scene scene, DataSnapshotManager externalData)
{

View File

@ -48,7 +48,7 @@ namespace OpenSim.Region.DataSnapshot
{
#region Class members
private List<Scene> m_scenes = new List<Scene>();
private ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private bool m_enabled = false;
private bool m_configLoaded = false;
internal object m_syncInit = new object();

View File

@ -45,7 +45,7 @@ namespace OpenSim.Region.DataSnapshot
private Scene m_scene = null;
private DataSnapshotManager m_parent = null;
//private Dictionary<int, Land> m_landIndexed = new Dictionary<int, Land>();
private ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
#region Dead code

View File

@ -37,7 +37,7 @@ namespace OpenSim.Region.DataSnapshot
{
private Scene m_scene = null;
private DataSnapshotManager m_parent = null;
private ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
public void Initialize(Scene scene, DataSnapshotManager parent)
{