lower debug level for end of file
This commit is contained in:
parent
d795ddd944
commit
0c58ebeedf
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue