Msgpack_debugSourceval create_debug_printers :
?pp:(Stdlib.Format.formatter -> Msgpack.t -> unit) ->
?color:bool ->
peer1:string ->
peer2:string ->
Core.Out_channel.t ->
[ `Peer_1_to_2 of Msgpack.t -> unit ] * [ `Peer_2_to_1 of Msgpack.t -> unit ]Given the names of two Msgpack peers and a channel to which traffic will be logged, return two functions that log Msgpack.ts sent between peer1 and peer2. The messages have "peer1 -> peer2" or "peer2 -> peer1" headings to indicate the message direction. Useful for debugging communication between two peers.