From 66d55334b037a7c52ee29d0bbf2c8b4421c3eb0f Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 20 Jun 2017 15:46:03 +0930 Subject: [PATCH] dev_disconnect: log when we are going to disconnect. Makes it easier to figure out where we were when complex tests fail. Signed-off-by: Rusty Russell --- lightningd/dev_disconnect.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lightningd/dev_disconnect.c b/lightningd/dev_disconnect.c index a6f5444d4..93de5f9aa 100644 --- a/lightningd/dev_disconnect.c +++ b/lightningd/dev_disconnect.c @@ -2,6 +2,7 @@ #include #include #include +#include #include #include #include @@ -37,6 +38,7 @@ char dev_disconnect(int pkt_type) assert(dev_disconnect_fd != -1); lseek(dev_disconnect_fd, strlen(dev_disconnect_line)+1, SEEK_CUR); + status_trace("dev_disconnect: %s", dev_disconnect_line); return dev_disconnect_line[0]; }