mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 13:55:35 +08:00
Log HTTP requests that arrive for SimpleStreamHandler's
This commit is contained in:
@@ -744,6 +744,9 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
|
||||
if (TryGetSimpleStreamHandler(path, out ISimpleStreamHandler hdr))
|
||||
{
|
||||
if (DebugLevel >= 3)
|
||||
LogIncomingToStreamHandler(request, hdr);
|
||||
|
||||
hdr.Handle(request, response);
|
||||
if (request.InputStream != null && request.InputStream.CanRead)
|
||||
request.InputStream.Dispose();
|
||||
@@ -970,6 +973,21 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
LogIncomingInDetail(request);
|
||||
}
|
||||
|
||||
private void LogIncomingToStreamHandler(OSHttpRequest request, ISimpleStreamHandler requestHandler)
|
||||
{
|
||||
m_log.DebugFormat(
|
||||
"[LOGHTTP] HTTP IN {0} :{1} stream handler {2} {3} {4} from {5}",
|
||||
RequestNumber,
|
||||
Port,
|
||||
request.HttpMethod,
|
||||
request.Url.PathAndQuery,
|
||||
requestHandler.Name,
|
||||
request.RemoteIPEndPoint);
|
||||
|
||||
if (DebugLevel >= 5)
|
||||
LogIncomingInDetail(request);
|
||||
}
|
||||
|
||||
private void LogIncomingToContentTypeHandler(OSHttpRequest request)
|
||||
{
|
||||
m_log.DebugFormat(
|
||||
|
||||
Reference in New Issue
Block a user