From 6358c2120836f3e13c249c06a0a62ca02bd9dd20 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Thu, 18 Dec 2008 01:52:49 +0000 Subject: * Committing an opensim level error message on httpserver. This might help with the eventqueue http server death. --- OpenSim/Framework/Servers/BaseHttpServer.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'OpenSim/Framework/Servers/BaseHttpServer.cs') diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs index aa2a06c..21c3011 100644 --- a/OpenSim/Framework/Servers/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/BaseHttpServer.cs @@ -1362,6 +1362,7 @@ namespace OpenSim.Framework.Servers //m_httpListener.Prefixes.Add("http://+:" + m_port + "/"); //m_httpListener.Prefixes.Add("http://10.1.1.5:" + m_port + "/"); m_httpListener2 = new HttpServer.HttpListener(IPAddress.Any, (int)m_port); + m_httpListener2.ExceptionThrown += httpServerException; } else { @@ -1387,6 +1388,11 @@ namespace OpenSim.Framework.Servers } } + public void httpServerException(object source, Exception exception) + { + m_log.ErrorFormat("[HTTPSERVER]: {0} had an exception {1}", source.ToString(), exception.ToString()); + } + public void Stop() { m_httpListener2.Stop(); -- cgit v1.1