From 0c58ebeedf08a988e6b5271ec81cee8f19b480f6 Mon Sep 17 00:00:00 2001 From: Hannes Mehnert Date: Thu, 1 Nov 2018 01:54:10 +0100 Subject: [PATCH] lower debug level for end of file --- src/vmm_lwt.ml | 2 +- src/vmm_tls_lwt.ml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vmm_lwt.ml b/src/vmm_lwt.ml index 7428704..de66540 100644 --- a/src/vmm_lwt.ml +++ b/src/vmm_lwt.ml @@ -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) diff --git a/src/vmm_tls_lwt.ml b/src/vmm_tls_lwt.ml index 51c74d9..99ad308 100644 --- a/src/vmm_tls_lwt.ml +++ b/src/vmm_tls_lwt.ml @@ -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