Adjust logging level on web server events

This commit is contained in:
Brahim Hadriche committed 2024-08-04 18:23:52 -04:00
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.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
' of the poll loop.
@@ -162,7 +162,7 @@ namespace Http
'info(m,op + " would have blocked @"+m.client)
else
if m.socket.eSuccess()
LogInfo(op + " peer closed @" + m.client)
LogDebug(op + " peer closed @" + m.client)
else
LogError(op + " transfer error @" + m.client, m.socket.status())
end if
@@ -121,7 +121,8 @@ ${m.GeneratedBy()}
buf_pos = m.start + m.sent - m.buf_start
buf_remaining = m.body_buffer.count() - buf_pos
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
req_remaining = m.body_buffer_length - m.sent
if buf_remaining > req_remaining