mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 03:05:29 -05:00
logging
This commit is contained in:
parent
bcc208cf59
commit
179d41cd9a
1 changed files with 2 additions and 2 deletions
|
|
@ -312,9 +312,9 @@ let client_handle_for (self : t) ~client_addr ic oc : unit =
|
|||
let msgf k =
|
||||
let elapsed = B.get_time_s () -. req.start_time in
|
||||
k
|
||||
("response to=%s code=%d time=%.3fs path=%S" : _ format4)
|
||||
("response to=%s code=%d time=%.3fs meth=%s path=%S" : _ format4)
|
||||
(Util.show_sockaddr client_addr)
|
||||
resp.code elapsed req.path
|
||||
resp.code elapsed (Meth.to_string req.meth) req.path
|
||||
in
|
||||
if Response_code.is_success resp.code then
|
||||
Log.info msgf
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue