Skip to content

Commit

Permalink
demote two specific noisy plugin_hook logging entries to trace
Browse files Browse the repository at this point in the history
These are too prolific 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 26, 2024
1 parent 0e04626 commit 7eed056
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 @@ -146,7 +146,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 @@ -197,7 +197,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 7eed056

Please sign in to comment.