aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application/Application.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Application/Application.cs')
-rw-r--r--OpenSim/Region/Application/Application.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim/Region/Application/Application.cs b/OpenSim/Region/Application/Application.cs
index 0c01b02..a7f61ff 100644
--- a/OpenSim/Region/Application/Application.cs
+++ b/OpenSim/Region/Application/Application.cs
@@ -39,7 +39,7 @@ namespace OpenSim
39 public class Application 39 public class Application
40 { 40 {
41 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 41 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
42 42
43 public static string iniFilePath = ""; 43 public static string iniFilePath = "";
44 44
45 public static bool m_saveCrashDumps = false; 45 public static bool m_saveCrashDumps = false;
@@ -51,7 +51,8 @@ namespace OpenSim
51 public static void Main(string[] args) 51 public static void Main(string[] args)
52 { 52 {
53 // First line 53 // First line
54 AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); 54 AppDomain.CurrentDomain.UnhandledException +=
55 new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
55 56
56 XmlConfigurator.Configure(); 57 XmlConfigurator.Configure();
57 58
@@ -143,7 +144,7 @@ namespace OpenSim
143 msg += "\r\n"; 144 msg += "\r\n";
144 145
145 msg += "Exception: " + e.ExceptionObject.ToString() + "\r\n"; 146 msg += "Exception: " + e.ExceptionObject.ToString() + "\r\n";
146 Exception ex = (Exception)e.ExceptionObject; 147 Exception ex = (Exception) e.ExceptionObject;
147 if (ex.InnerException != null) 148 if (ex.InnerException != null)
148 { 149 {
149 msg += "InnerException: " + ex.InnerException.ToString() + "\r\n"; 150 msg += "InnerException: " + ex.InnerException.ToString() + "\r\n";
@@ -177,7 +178,7 @@ namespace OpenSim
177 m_log.ErrorFormat("[CRASH LOGGER CRASHED]: {0}", e2); 178 m_log.ErrorFormat("[CRASH LOGGER CRASHED]: {0}", e2);
178 } 179 }
179 180
180 _IsHandlingException=false; 181 _IsHandlingException = false;
181 } 182 }
182 } 183 }
183} 184} \ No newline at end of file