mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 22:45:27 +01:00
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 <rusty@rustcorp.com.au>
This commit is contained in:
parent
d236e724a9
commit
66d55334b0
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
#include <ccan/err/err.h>
|
||||
#include <ccan/str/str.h>
|
||||
#include <lightningd/dev_disconnect.h>
|
||||
#include <lightningd/status.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/types.h>
|
||||
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue