From 785826231ecde32b3f4cee68de3999bb8a363c80 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 14 Jan 2008 18:02:37 +0000 Subject: Print out the exception as well as APPLICATION EXCEPTION DETECTED when the server hits something terminal. This was the original intention, but the line order was slightly wrong. --- OpenSim/Region/Application/Application.cs | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Application/Application.cs b/OpenSim/Region/Application/Application.cs index 8f5c87e..ca1e9c9 100644 --- a/OpenSim/Region/Application/Application.cs +++ b/OpenSim/Region/Application/Application.cs @@ -90,16 +90,19 @@ namespace OpenSim // TODO: Add config option to allow users to turn off error reporting // TODO: Post error report (disabled for now) - string msg = ""; + string msg = ""; msg += "\r\n"; - msg += "APPLICATION EXCEPTION DETECTED\r\n"; + msg += "APPLICATION EXCEPTION DETECTED: " + e.ToString() + "\r\n"; msg += "\r\n"; - msg += "Application is terminating: " + e.IsTerminating.ToString() + "\r\n"; - if (e.IsTerminating) - Console.WriteLine(msg); - msg += "Exception:"; - msg += e.ExceptionObject.ToString(); + msg += "Exception: " + e.ExceptionObject.ToString() + "\r\n"; + + msg += "\r\n"; + msg += "Application is terminating: " + e.IsTerminating.ToString() + "\r\n"; + + // Do we not always want to see exception messages? +// if (e.IsTerminating) + MainLog.Instance.Error("APPLICATION", msg); // Try to post errormessage to an URL try @@ -118,4 +121,4 @@ namespace OpenSim } } -} \ No newline at end of file +} -- cgit v1.1