bkpr: more logging

This commit is contained in:
niftynei
2022-07-19 17:04:40 +09:30
committed by Rusty Russell
parent 9346158290
commit 38eb95ffee

View File

@@ -604,6 +604,10 @@ static bool new_missed_channel_account(struct command *cmd,
if (!streq(chan_id, acct->name)) if (!streq(chan_id, acct->name))
continue; continue;
plugin_log(cmd->plugin, LOG_DBG,
"Logging channel account from list %s",
acct->name);
chain_ev = tal(cmd, struct chain_event); chain_ev = tal(cmd, struct chain_event);
chain_ev->tag = mvt_tag_str(CHANNEL_OPEN); chain_ev->tag = mvt_tag_str(CHANNEL_OPEN);
chain_ev->debit = AMOUNT_MSAT(0); chain_ev->debit = AMOUNT_MSAT(0);
@@ -845,12 +849,14 @@ listpeers_multi_done(struct command *cmd,
if (err) if (err)
plugin_err(cmd->plugin, err); plugin_err(cmd->plugin, err);
plugin_log(cmd->plugin, LOG_DBG, "Snapshot balances updated");
log_journal_entry(info->acct, log_journal_entry(info->acct,
info->currency, info->currency,
info->timestamp - 1, info->timestamp - 1,
credit_diff, debit_diff); credit_diff, debit_diff);
} }
plugin_log(cmd->plugin, LOG_DBG, "Snapshot balances updated");
return notification_handled(cmd); return notification_handled(cmd);
} }
@@ -1127,6 +1133,7 @@ static struct command_result *json_balance_snapshot(struct command *cmd,
return command_still_pending(cmd); return command_still_pending(cmd);
} }
plugin_log(cmd->plugin, LOG_DBG, "Snapshot balances updated");
return notification_handled(cmd); return notification_handled(cmd);
} }