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.ThreadPoolClientBranch
parent
6716668187
commit
785826231e
|
@ -92,14 +92,17 @@ namespace OpenSim
|
||||||
|
|
||||||
string msg = "";
|
string msg = "";
|
||||||
msg += "\r\n";
|
msg += "\r\n";
|
||||||
msg += "APPLICATION EXCEPTION DETECTED\r\n";
|
msg += "APPLICATION EXCEPTION DETECTED: " + e.ToString() + "\r\n";
|
||||||
|
msg += "\r\n";
|
||||||
|
|
||||||
|
msg += "Exception: " + e.ExceptionObject.ToString() + "\r\n";
|
||||||
|
|
||||||
msg += "\r\n";
|
msg += "\r\n";
|
||||||
msg += "Application is terminating: " + e.IsTerminating.ToString() + "\r\n";
|
msg += "Application is terminating: " + e.IsTerminating.ToString() + "\r\n";
|
||||||
if (e.IsTerminating)
|
|
||||||
Console.WriteLine(msg);
|
|
||||||
|
|
||||||
msg += "Exception:";
|
// Do we not always want to see exception messages?
|
||||||
msg += e.ExceptionObject.ToString();
|
// if (e.IsTerminating)
|
||||||
|
MainLog.Instance.Error("APPLICATION", msg);
|
||||||
|
|
||||||
// Try to post errormessage to an URL
|
// Try to post errormessage to an URL
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in New Issue