diff --git a/connectd/multiplex.c b/connectd/multiplex.c index 311a7d75db9c..86e9c4b5afd9 100644 --- a/connectd/multiplex.c +++ b/connectd/multiplex.c @@ -564,6 +564,8 @@ void set_custommsgs(struct daemon *daemon, const u8 *msg) tal_free(daemon->custom_msgs); if (!fromwire_connectd_set_custommsgs(daemon, msg, &daemon->custom_msgs)) master_badmsg(WIRE_CONNECTD_SET_CUSTOMMSGS, msg); + status_debug("Now allowing %zu custom message types", + tal_count(daemon->custom_msgs)); } void send_custommsg(struct daemon *daemon, const u8 *msg) diff --git a/tests/test_misc.py b/tests/test_misc.py index bc5c0f1552af..dfb6549b58c8 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -3617,6 +3617,7 @@ def test_even_sendcustommsg(node_factory): # Now with a plugin which allows it l1.connect(l2) l2.rpc.plugin_start(os.path.join(os.getcwd(), "tests/plugins/allow_even_msgs.py")) + l2.daemon.wait_for_log("connectd.*Now allowing 1 custom message types") l1.rpc.sendcustommsg(l2.info['id'], msg) l2.daemon.wait_for_log(r'\[IN\] {}'.format(msg))