Skip to content

Commit e9f617c

Browse files
committed
splice-script: wetlog / debuglog fix
When using wetlog we might not also have debug log enabled.
1 parent 832cd30 commit e9f617c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

plugins/spender/splice.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,11 @@ static struct command_result *unreserve_get_result(struct command *cmd,
7575
&splice_cmd->final_txid);
7676
}
7777

78-
json_array_start(response, "log");
79-
debug_log_to_json(response, splice_cmd->debug_log);
80-
json_array_end(response);
78+
if (splice_cmd->debug_log) {
79+
json_array_start(response, "log");
80+
debug_log_to_json(response, splice_cmd->debug_log);
81+
json_array_end(response);
82+
}
8183

8284
tal_free(abort_pkg);
8385
return command_finished(cmd, response);

0 commit comments

Comments
 (0)