Skip to content

Commit

Permalink
Cohttp debugging message adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilisp committed Feb 13, 2018
1 parent 36281f2 commit 8dfa9c7
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/server/ocsigen_cohttp.ml
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,6 @@ let make_cookies_headers path t hds =

let handler ~ssl ~address ~port ~connector (flow, conn) request body =

Lwt_log.ign_info_f ~section
"Receiving the request: %s\nConnection ID: %s"
(Format.asprintf "%a" print_request request)
(Cohttp.Connection.to_string conn);

let filenames = ref [] in
let edn = Conduit_lwt_unix.endp_of_flow flow in
let rec getsockname = function
Expand Down Expand Up @@ -149,9 +144,6 @@ let handler ~ssl ~address ~port ~connector (flow, conn) request body =
None, `Internal_server_error
in

Lwt_log.ign_warning_f ~section "Returning error code %i."
(Cohttp.Code.code_of_status (ret_code :> Cohttp.Code.status_code));

let body =
match ret_code with
| `Not_found -> "Not Found"
Expand Down Expand Up @@ -207,7 +199,7 @@ let handler ~ssl ~address ~port ~connector (flow, conn) request body =

let conn_closed (flow, conn) =
try
Lwt_log.ign_info_f ~section
Lwt_log.ign_debug_f ~section
"Connection closed:\n%s"
(Cohttp.Connection.to_string conn);
let wakener = Hashtbl.find waiters conn in
Expand Down

0 comments on commit 8dfa9c7

Please sign in to comment.