Adjust logging level on web server events
This commit is contained in:
1 parent
4af500bec0
commit
b33136360d
2 files changed
+4
-3
No files matched your search
@@ -56,7 +56,7 @@ namespace Http
|
|||||||
m.SetState(Http.HttpConnectionState.RECV_REQUEST)
|
m.SetState(Http.HttpConnectionState.RECV_REQUEST)
|
||||||
m.client = m.socket.getReceivedFromAddress().getAddress()
|
m.client = m.socket.getReceivedFromAddress().getAddress()
|
||||||
|
|
||||||
LogInfo("accepted connection @" + m.client)
|
LogDebug("accepted connection @" + m.client)
|
||||||
|
|
||||||
' try to read right away rather than going through another iteration
|
' try to read right away rather than going through another iteration
|
||||||
' of the poll loop.
|
' of the poll loop.
|
||||||
@@ -162,7 +162,7 @@ namespace Http
|
|||||||
'info(m,op + " would have blocked @"+m.client)
|
'info(m,op + " would have blocked @"+m.client)
|
||||||
else
|
else
|
||||||
if m.socket.eSuccess()
|
if m.socket.eSuccess()
|
||||||
LogInfo(op + " peer closed @" + m.client)
|
LogDebug(op + " peer closed @" + m.client)
|
||||||
else
|
else
|
||||||
LogError(op + " transfer error @" + m.client, m.socket.status())
|
LogError(op + " transfer error @" + m.client, m.socket.status())
|
||||||
end if
|
end if
|
||||||
|
|||||||
@@ -121,7 +121,8 @@ ${m.GeneratedBy()}
|
|||||||
buf_pos = m.start + m.sent - m.buf_start
|
buf_pos = m.start + m.sent - m.buf_start
|
||||||
buf_remaining = m.body_buffer.count() - buf_pos
|
buf_remaining = m.body_buffer.count() - buf_pos
|
||||||
if buf_remaining = 0
|
if buf_remaining = 0
|
||||||
LogInfo("source buffer is empty")
|
' This is expected if there's an ETag cache hit
|
||||||
|
LogDebug("source buffer is empty")
|
||||||
end if
|
end if
|
||||||
req_remaining = m.body_buffer_length - m.sent
|
req_remaining = m.body_buffer_length - m.sent
|
||||||
if buf_remaining > req_remaining
|
if buf_remaining > req_remaining
|
||||||
|
|||||||
Reference in new issue
Block a user