aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application/Application.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Application/Application.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Region/Application/Application.cs b/OpenSim/Region/Application/Application.cs
index 8d2ce55..86661b8 100644
--- a/OpenSim/Region/Application/Application.cs
+++ b/OpenSim/Region/Application/Application.cs
@@ -27,6 +27,8 @@
27 27
28using System; 28using System;
29using System.Net; 29using System.Net;
30using System.Reflection;
31using log4net;
30using log4net.Config; 32using log4net.Config;
31using Nini.Config; 33using Nini.Config;
32using OpenSim.Framework; 34using OpenSim.Framework;
@@ -36,6 +38,8 @@ namespace OpenSim
36{ 38{
37 public class Application 39 public class Application
38 { 40 {
41 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
42
39 public static string iniFilePath = ""; 43 public static string iniFilePath = "";
40 44
41 //could move our main function into OpenSimMain and kill this class 45 //could move our main function into OpenSimMain and kill this class
@@ -124,9 +128,7 @@ namespace OpenSim
124 msg += "\r\n"; 128 msg += "\r\n";
125 msg += "Application is terminating: " + e.IsTerminating.ToString() + "\r\n"; 129 msg += "Application is terminating: " + e.IsTerminating.ToString() + "\r\n";
126 130
127 // Do we not always want to see exception messages? 131 m_log.ErrorFormat("[APPLICATION]: {0}", msg);
128// if (e.IsTerminating)
129 MainConsole.Instance.Error("[APPLICATION]: " + msg);
130 132
131 // Try to post errormessage to an URL 133 // Try to post errormessage to an URL
132 try 134 try