mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-24 00:04:20 +01:00
common: allow subdaemons to specify the node_id in status messages.
This is ignored in subdaemons which are per-peer, but very useful for multi-peer daemons like connectd and gossipd. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -49,11 +49,15 @@ static bool initial_sync = false;
|
||||
static unsigned long max_messages = -1UL;
|
||||
|
||||
/* Empty stubs to make us compile */
|
||||
void status_peer_io(enum log_level iodir, const u8 *p)
|
||||
void status_peer_io(enum log_level iodir,
|
||||
const struct node_id *node_id,
|
||||
const u8 *p)
|
||||
{
|
||||
}
|
||||
|
||||
void status_fmt(enum log_level level, const char *fmt, ...)
|
||||
void status_fmt(enum log_level level,
|
||||
const struct node_id *node_id,
|
||||
const char *fmt, ...)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,9 @@
|
||||
|
||||
static bool verbose = false;
|
||||
|
||||
void status_fmt(enum log_level level, const char *fmt, ...)
|
||||
void status_fmt(enum log_level level,
|
||||
const struct node_id *node_id,
|
||||
const char *fmt, ...)
|
||||
{
|
||||
if (verbose) {
|
||||
va_list ap;
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
|
||||
static bool verbose = false;
|
||||
|
||||
void status_fmt(enum log_level level, const char *fmt, ...)
|
||||
void status_fmt(enum log_level level,
|
||||
const struct node_id *node_id,
|
||||
const char *fmt, ...)
|
||||
{
|
||||
if (verbose) {
|
||||
va_list ap;
|
||||
|
||||
@@ -21,7 +21,9 @@
|
||||
#include <common/utxo.h>
|
||||
#include <stdio.h>
|
||||
|
||||
void status_fmt(enum log_level level, const char *fmt, ...)
|
||||
void status_fmt(enum log_level level,
|
||||
const struct node_id *node_id,
|
||||
const char *fmt, ...)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user