Skip to content

Commit 4bfb036

Browse files
committed
Set Debug level for serialization messages
1 parent 5669564 commit 4bfb036

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

async/Async_OpenFlow_Message.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module MakeSerializers (M : Message) = struct
2929
Reader.really_read raw_reader ofhdr_str
3030
>>= function
3131
| `Eof _ ->
32-
Log.printf "[%s] EOF reading header" label;
32+
Log.printf ~level:`Debug "[%s] EOF reading header" label;
3333
return `Eof
3434
| `Ok ->
3535
let hdr = Header.parse (Cstruct.of_string ofhdr_str) in
@@ -38,12 +38,12 @@ module MakeSerializers (M : Message) = struct
3838
Reader.really_read raw_reader body_buf
3939
>>= function
4040
| `Eof _ ->
41-
Log.printf "[%s] EOF reading body (expected %d bytes)" label body_len;
41+
Log.printf ~level:`Debug "[%s] EOF reading body (expected %d bytes)" label body_len;
4242
return `Eof
4343
| `Ok ->
4444
let m = M.parse hdr (Cstruct.of_string body_buf) in
4545
(* extra space left so read and write align in the log *)
46-
Log.printf "[%s] read %s hash=%s" label (Header.to_string hdr)
46+
Log.printf ~level:`Debug "[%s] read %s hash=%s" label (Header.to_string hdr)
4747
(readable_md5 (ofhdr_str ^ body_buf));
4848
return (`Ok m)
4949

0 commit comments

Comments
 (0)