lower debug level for end of file

This commit is contained in:
Hannes Mehnert 2018-11-01 01:54:10 +01:00
parent d795ddd944
commit 0c58ebeedf
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ let read_wire s =
Lwt.catch (fun () ->
Lwt_unix.read s b i l >>= function
| 0 ->
Logs.err (fun m -> m "end of file while reading") ;
Logs.debug (fun m -> m "end of file while reading") ;
Lwt.return (Error `Eof)
| n when n == l -> Lwt.return (Ok ())
| n when n < l -> r b (i + n) (l - n)

View File

@ -11,7 +11,7 @@ let read_tls t =
Lwt.catch (fun () ->
Tls_lwt.Unix.read t (Cstruct.shift buf off) >>= function
| 0 ->
Logs.err (fun m -> m "TLS: end of file") ;
Logs.debug (fun m -> m "TLS: end of file") ;
Lwt.return (Error `Eof)
| x when x == l -> Lwt.return (Ok ())
| x when x < l -> r_n buf (off + x) tot