Skip to content

Commit

Permalink
logging: move two noisy plugin_hook logging entries to TRACE
Browse files Browse the repository at this point in the history
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 ZmnSCPxj/clboss#194
  • Loading branch information
ksedgwic committed Apr 27, 2024
1 parent 63305a9 commit 7de3eab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lightningd/plugin_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
if (h) {
log_debug(ph_req->ld->log,
log_trace(ph_req->ld->log,
"Plugin %s returned from %s hook call",
h->plugin->shortname, ph_req->hook->name);
resulttok = json_get_member(buffer, toks, "result");
Expand Down Expand Up @@ -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);

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);
req = jsonrpc_request_start(NULL, hook->name, ph_req->cmd_id,
plugin->non_numeric_ids,
Expand Down

0 comments on commit 7de3eab

Please sign in to comment.