From f128c746f0e7731cb27004b6012bc5180b9c1311 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Tue, 10 Sep 2019 16:17:40 -0400 Subject: [PATCH] Write data payload as hex to log --- libp2p/pubsub/pubsub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/pubsub/pubsub.py b/libp2p/pubsub/pubsub.py index 90fa63c..2fb6c15 100644 --- a/libp2p/pubsub/pubsub.py +++ b/libp2p/pubsub/pubsub.py @@ -425,7 +425,7 @@ class Pubsub: log.debug( "Topic validation failed: sender %s sent data %s under topic IDs: %s", f"{base58.b58encode(msg.from_id).decode()}:{msg.seqno.hex()}", - msg.data, + msg.data.hex(), msg.topicIDs, ) return