diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneBase.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneBase.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneBase.cs b/OpenSim/Region/Environment/Scenes/SceneBase.cs index d4a4bb0..2e95322 100644 --- a/OpenSim/Region/Environment/Scenes/SceneBase.cs +++ b/OpenSim/Region/Environment/Scenes/SceneBase.cs | |||
@@ -36,6 +36,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
36 | { | 36 | { |
37 | public abstract class SceneBase : IScene | 37 | public abstract class SceneBase : IScene |
38 | { | 38 | { |
39 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | ||
40 | |||
39 | #region Events | 41 | #region Events |
40 | 42 | ||
41 | public event restart OnRestart; | 43 | public event restart OnRestart; |
@@ -155,7 +157,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
155 | /// <param name="seconds"></param> | 157 | /// <param name="seconds"></param> |
156 | public virtual void Restart(int seconds) | 158 | public virtual void Restart(int seconds) |
157 | { | 159 | { |
158 | MainLog.Instance.Error("REGION", "passing Restart Message up the namespace"); | 160 | m_log.Error("[REGION]: passing Restart Message up the namespace"); |
159 | OnRestart(RegionInfo); | 161 | OnRestart(RegionInfo); |
160 | } | 162 | } |
161 | 163 | ||
@@ -180,7 +182,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
180 | } | 182 | } |
181 | catch (Exception e) | 183 | catch (Exception e) |
182 | { | 184 | { |
183 | MainLog.Instance.Error("SCENE", "SceneBase.cs: Close() - Failed with exception " + e.ToString()); | 185 | m_log.Error("[SCENE]: SceneBase.cs: Close() - Failed with exception " + e.ToString()); |
184 | } | 186 | } |
185 | } | 187 | } |
186 | 188 | ||