libplugin: fix LOG_TRACE for plugins

A log event LOG_TRACE submitted by a plugin was being logged as
**BROKEN** by lightningd before this commit.

Changelog-Fixed: plugins can now log events under the LOG_TRACE flag.

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
This commit is contained in:
Lagrang3
2025-02-24 09:26:47 +01:00
committed by ShahanaFarooqui
parent 3da1bdb368
commit be6a140777
2 changed files with 3 additions and 2 deletions

View File

@@ -498,7 +498,7 @@ static const char *plugin_log_handle(struct plugin *plugin,
|| level == LOG_IO_OUT) {
return tal_fmt(plugin,
"Unknown log-level %.*s, valid values are "
"\"debug\", \"info\", \"warn\", or \"error\".",
"\"trace\", \"debug\", \"info\", \"warn\", or \"error\".",
json_tok_full_len(leveltok),
json_tok_full(plugin->buffer, leveltok));
}