From 10e58a3788ad5a55031007c3ad5423dc68f3cf4d Mon Sep 17 00:00:00 2001 From: niftynei Date: Tue, 19 Jul 2022 17:04:38 +0930 Subject: [PATCH] nit,bkpr: add a note about what the tag was to this printout Makes it much easier to debug when something goes wrong! --- plugins/bkpr/bookkeeper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/bkpr/bookkeeper.c b/plugins/bkpr/bookkeeper.c index 8cba95954..8f6a260e6 100644 --- a/plugins/bkpr/bookkeeper.c +++ b/plugins/bkpr/bookkeeper.c @@ -1401,8 +1401,9 @@ static struct command_result * json_coin_moved(struct command *cmd, /* We expect version 2 of coin movements */ assert(version == 2); - plugin_log(cmd->plugin, LOG_DBG, "coin_move %d %s -%s %s %"PRIu64, + plugin_log(cmd->plugin, LOG_DBG, "coin_move %d (%s) %s -%s %s %"PRIu64, version, + mvt_tag_str(tags[0]), type_to_string(tmpctx, struct amount_msat, &credit), type_to_string(tmpctx, struct amount_msat, &debit), mvt_type, timestamp);