core-lightning/lightningd/log_status.h
Rusty Russell e433d4ddc1 lightningd: have logging include an optional node_id for each entry.
A log can have a default node_id, which can be overridden on a per-entry
basis.  This changes the format of logging, so some tests need rework.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-11-18 04:50:22 +00:00

13 lines
384 B
C

#ifndef LIGHTNING_LIGHTNINGD_LOG_STATUS_H
#define LIGHTNING_LIGHTNINGD_LOG_STATUS_H
#include "config.h"
#include <common/status_levels.h>
#include <lightningd/log.h>
/* Returns true (and writes it to log) if it's a status_log message. */
bool log_status_msg(struct log *log,
const struct node_id *node_id,
const u8 *msg);
#endif /* LIGHTNING_LIGHTNINGD_LOG_STATUS_H */