logging: move two noisy plugin_hook logging entries to TRACE

These are very noisy at the debug level:
DEBUG   lightningd: Calling rpc_command hook of plugin clboss
DEBUG   lightningd: Plugin clboss returned from rpc_command hook call

As seen in https://github.com/ZmnSCPxj/clboss/issues/194
This commit is contained in:
Ken Sedgwick 2024-04-25 14:35:57 -07:00 committed by Rusty Russell
parent e3c600b0c8
commit 788e102482

View file

@ -159,7 +159,7 @@ static void plugin_hook_callback(const char *buffer, const jsmntok_t *toks,
/* We really only handle plugins dying: other errors are fatal. */ /* We really only handle plugins dying: other errors are fatal. */
if (h) { if (h) {
log_debug(ph_req->ld->log, log_trace(ph_req->ld->log,
"Plugin %s returned from %s hook call", "Plugin %s returned from %s hook call",
h->plugin->shortname, ph_req->hook->name); h->plugin->shortname, ph_req->hook->name);
resulttok = json_get_member(buffer, toks, "result"); resulttok = json_get_member(buffer, toks, "result");
@ -200,7 +200,7 @@ static void plugin_hook_call_next(struct plugin_hook_request *ph_req)
} while (ph_req->hooks[ph_req->hook_index] == NULL); } while (ph_req->hooks[ph_req->hook_index] == NULL);
plugin = ph_req->hooks[ph_req->hook_index]->plugin; plugin = ph_req->hooks[ph_req->hook_index]->plugin;
log_debug(ph_req->ld->log, "Calling %s hook of plugin %s", log_trace(ph_req->ld->log, "Calling %s hook of plugin %s",
ph_req->hook->name, plugin->shortname); ph_req->hook->name, plugin->shortname);
req = jsonrpc_request_start(NULL, hook->name, ph_req->cmd_id, req = jsonrpc_request_start(NULL, hook->name, ph_req->cmd_id,
plugin->non_numeric_ids, plugin->non_numeric_ids,