aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-01-14 18:02:37 +0000
committerJustin Clarke Casey2008-01-14 18:02:37 +0000
commit785826231ecde32b3f4cee68de3999bb8a363c80 (patch)
treeacefa5f2f8e1f719e65cde5108a2d304d468485a /OpenSim/Region
parentSet svn:eol-style. (diff)
downloadopensim-SC_OLD-785826231ecde32b3f4cee68de3999bb8a363c80.zip
opensim-SC_OLD-785826231ecde32b3f4cee68de3999bb8a363c80.tar.gz
opensim-SC_OLD-785826231ecde32b3f4cee68de3999bb8a363c80.tar.bz2
opensim-SC_OLD-785826231ecde32b3f4cee68de3999bb8a363c80.tar.xz
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.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Application/Application.cs19
1 files changed, 11 insertions, 8 deletions
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
90 // TODO: Add config option to allow users to turn off error reporting 90 // TODO: Add config option to allow users to turn off error reporting
91 // TODO: Post error report (disabled for now) 91 // TODO: Post error report (disabled for now)
92 92
93 string msg = ""; 93 string msg = "";
94 msg += "\r\n"; 94 msg += "\r\n";
95 msg += "APPLICATION EXCEPTION DETECTED\r\n"; 95 msg += "APPLICATION EXCEPTION DETECTED: " + e.ToString() + "\r\n";
96 msg += "\r\n"; 96 msg += "\r\n";
97 msg += "Application is terminating: " + e.IsTerminating.ToString() + "\r\n";
98 if (e.IsTerminating)
99 Console.WriteLine(msg);
100 97
101 msg += "Exception:"; 98 msg += "Exception: " + e.ExceptionObject.ToString() + "\r\n";
102 msg += e.ExceptionObject.ToString(); 99
100 msg += "\r\n";
101 msg += "Application is terminating: " + e.IsTerminating.ToString() + "\r\n";
102
103 // Do we not always want to see exception messages?
104// if (e.IsTerminating)
105 MainLog.Instance.Error("APPLICATION", msg);
103 106
104 // Try to post errormessage to an URL 107 // Try to post errormessage to an URL
105 try 108 try
@@ -118,4 +121,4 @@ namespace OpenSim
118 } 121 }
119 122
120 } 123 }
121} \ No newline at end of file 124}