aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorjustincc2009-12-16 16:44:38 +0000
committerjustincc2009-12-16 16:44:38 +0000
commit09618626d7c99bc947c1da847ed3bcfde8373c73 (patch)
tree895c34e6deddabe9a43f09527d1a92a2478ed5b8 /OpenSim/Framework
parentSwitch on HttpServer_OpenSim.dll logging temporarily (diff)
downloadopensim-SC-09618626d7c99bc947c1da847ed3bcfde8373c73.zip
opensim-SC-09618626d7c99bc947c1da847ed3bcfde8373c73.tar.gz
opensim-SC-09618626d7c99bc947c1da847ed3bcfde8373c73.tar.bz2
opensim-SC-09618626d7c99bc947c1da847ed3bcfde8373c73.tar.xz
Revert "Switch on HttpServer_OpenSim.dll logging temporarily"
This reverts commit 0e9dcbbea70585970b78316fe6d65f6cb555b74d.
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs41
1 files changed, 21 insertions, 20 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
index 8eeb067..3d6051d 100644
--- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
@@ -40,8 +40,7 @@ using HttpServer;
40using log4net; 40using log4net;
41using Nwc.XmlRpc; 41using Nwc.XmlRpc;
42using OpenMetaverse.StructuredData; 42using OpenMetaverse.StructuredData;
43using CoolHTTPListener = HttpServer.HttpListener; 43using CoolHTTPListener = HttpServer.HttpListener;
44using CoolHttpServer = HttpServer;
45using HttpListener=System.Net.HttpListener; 44using HttpListener=System.Net.HttpListener;
46 45
47namespace OpenSim.Framework.Servers.HttpServer 46namespace OpenSim.Framework.Servers.HttpServer
@@ -730,12 +729,12 @@ namespace OpenSim.Framework.Servers.HttpServer
730 xmlRpcResponse = method(xmlRprcRequest, request.RemoteIPEndPoint); 729 xmlRpcResponse = method(xmlRprcRequest, request.RemoteIPEndPoint);
731 } 730 }
732 catch(Exception e) 731 catch(Exception e)
733 { 732 {
734 string errorMessage 733 string errorMessage
735 = String.Format( 734 = String.Format(
736 "Requested method [{0}] from {1} threw exception: {2} {3}", 735 "Requested method [{0}] from {1} threw exception: {2} {3}",
737 methodName, request.RemoteIPEndPoint.Address, e.Message, e.StackTrace); 736 methodName, request.RemoteIPEndPoint.Address, e.Message, e.StackTrace);
738 737
739 m_log.ErrorFormat("[BASE HTTP SERVER]: {0}", errorMessage); 738 m_log.ErrorFormat("[BASE HTTP SERVER]: {0}", errorMessage);
740 739
741 // if the registered XmlRpc method threw an exception, we pass a fault-code along 740 // if the registered XmlRpc method threw an exception, we pass a fault-code along
@@ -1820,32 +1819,34 @@ namespace OpenSim.Framework.Servers.HttpServer
1820 /// There is also a UseTraceLogs line in this file that can be uncommented for more detailed log information 1819 /// There is also a UseTraceLogs line in this file that can be uncommented for more detailed log information
1821 public class HttpServerLogWriter : ILogWriter 1820 public class HttpServerLogWriter : ILogWriter
1822 { 1821 {
1823 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 1822 //private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
1824 1823
1825 public void Write(object source, LogPrio priority, string message) 1824 public void Write(object source, LogPrio priority, string message)
1826 { 1825 {
1826 /*
1827 switch (priority) 1827 switch (priority)
1828 { 1828 {
1829 case CoolHttpServer.LogPrio.Debug: 1829 case HttpServer.LogPrio.Debug:
1830 m_log.DebugFormat("[{0}]: {1}", source.ToString(), message); 1830 m_log.DebugFormat("[{0}]: {1}", source.ToString(), message);
1831 break; 1831 break;
1832 case CoolHttpServer.LogPrio.Error: 1832 case HttpServer.LogPrio.Error:
1833 m_log.ErrorFormat("[{0}]: {1}", source.ToString(), message); 1833 m_log.ErrorFormat("[{0}]: {1}", source.ToString(), message);
1834 break; 1834 break;
1835 case CoolHttpServer.LogPrio.Info: 1835 case HttpServer.LogPrio.Info:
1836 m_log.InfoFormat("[{0}]: {1}", source.ToString(), message); 1836 m_log.InfoFormat("[{0}]: {1}", source.ToString(), message);
1837 break; 1837 break;
1838 case CoolHttpServer.LogPrio.Warning: 1838 case HttpServer.LogPrio.Warning:
1839 m_log.WarnFormat("[{0}]: {1}", source.ToString(), message); 1839 m_log.WarnFormat("[{0}]: {1}", source.ToString(), message);
1840 break; 1840 break;
1841 case CoolHttpServer.LogPrio.Fatal: 1841 case HttpServer.LogPrio.Fatal:
1842 m_log.ErrorFormat("[{0}]: FATAL! - {1}", source.ToString(), message); 1842 m_log.ErrorFormat("[{0}]: FATAL! - {1}", source.ToString(), message);
1843 break; 1843 break;
1844 default: 1844 default:
1845 break; 1845 break;
1846 } 1846 }
1847 */
1847 1848
1848 return; 1849 return;
1849 } 1850 }
1850 } 1851 }
1851} \ No newline at end of file 1852}