From 974d328fb695cc12eb0e1f60a4f1ea613546413c Mon Sep 17 00:00:00 2001 From: jmjatlanta Date: Mon, 25 Sep 2017 13:33:42 -0500 Subject: [PATCH] more useful debugging message --- net/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/protocol.c b/net/protocol.c index 9f71c4f..05cbd6e 100644 --- a/net/protocol.c +++ b/net/protocol.c @@ -57,7 +57,7 @@ int libp2p_protocol_marshal(const unsigned char* incoming, size_t incoming_size, } if (handler == NULL) { - libp2p_logger_error("protocol", "Unable to find handler for %s.\n", str); + libp2p_logger_error("protocol", "Session [%s]: Unable to find handler for %s.\n", session->remote_peer_id, str); return -1; } else { libp2p_logger_debug("protocol", "Found handler for %s.\n", str);