Skip to content

Commit edcf038

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

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

plugins/spender/splice.c

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

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

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

0 commit comments

Comments
 (0)