From ad365886e314f82c5a476d2868ee3aa02fcdb85b Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 2 May 2025 13:41:03 +0930 Subject: [PATCH] libplugin: support LOG_TRACE level logging. Otherwise it comes out as "**BROKEN**" messages: ``` lightningd-2 2025-05-02T03:51:28.760Z **BROKEN** plugin-chanbackup: Peer storage sent! lightningd-1 2025-05-02T03:51:28.770Z **BROKEN** plugin-chanbackup: Peer storage sent! ``` Signed-off-by: Rusty Russell --- plugins/libplugin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/libplugin.c b/plugins/libplugin.c index b5f483720..78fba478b 100644 --- a/plugins/libplugin.c +++ b/plugins/libplugin.c @@ -1838,6 +1838,7 @@ void plugin_logv(struct plugin *p, enum log_level l, l == LOG_DBG ? "debug" : l == LOG_INFORM ? "info" : l == LOG_UNUSUAL ? "warn" + : l == LOG_TRACE ? "trace" : "error"); json_out_addv(js->jout, "message", true, fmt, ap); json_object_end(js);