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 <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2025-05-02 13:41:03 +09:30
committed by ShahanaFarooqui
parent f054600723
commit ad365886e3

View File

@@ -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);