mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 13:25:43 +01:00
bcli: don't log failed sendrawtransaction attempts twice
They are already logged both in bcli, and in lightningd. This just adds a lot of noise to the logs. We keep successed attempts though for the tests. Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
This commit is contained in:
parent
678591d851
commit
3fc77730be
@ -625,8 +625,10 @@ static struct command_result *process_sendrawtransaction(struct bitcoin_cli *bcl
|
|||||||
{
|
{
|
||||||
struct json_stream *response;
|
struct json_stream *response;
|
||||||
|
|
||||||
plugin_log(bcli->cmd->plugin, LOG_DBG, "sendrawtx exit %i (%s)",
|
/* This is useful for functional tests. */
|
||||||
*bcli->exitstatus, bcli_args(bcli));
|
if (*bcli->exitstatus == 0)
|
||||||
|
plugin_log(bcli->cmd->plugin, LOG_DBG, "sendrawtx exit %i (%s)",
|
||||||
|
*bcli->exitstatus, bcli_args(bcli));
|
||||||
|
|
||||||
response = jsonrpc_stream_success(bcli->cmd);
|
response = jsonrpc_stream_success(bcli->cmd);
|
||||||
json_add_bool(response, "success", *bcli->exitstatus == 0);
|
json_add_bool(response, "success", *bcli->exitstatus == 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user