Skip to content

Commit 0c80dd6

Browse files
committed
fix: Remove "Printing" from listdatastore debug log.
Changelog-None
1 parent 490fb0f commit 0c80dd6

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lightningd/datastore.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,6 @@ static struct command_result *json_listdatastore(struct command *cmd,
222222
NULL))
223223
return command_param_failed();
224224

225-
if (key)
226-
log_debug(cmd->ld->log, "Looking for %s",
227-
datastore_key_fmt(tmpctx, key));
228-
229225
response = json_stream_success(cmd);
230226
json_array_start(response, "datastore");
231227

@@ -235,12 +231,9 @@ static struct command_result *json_listdatastore(struct command *cmd,
235231
stmt = wallet_datastore_next(cmd, key,
236232
stmt, &k, &data,
237233
&generation)) {
238-
log_debug(cmd->ld->log, "Got %s",
239-
datastore_key_fmt(tmpctx, k));
240234

241235
/* Don't list sub-children, except as summary to show it exists. */
242236
if (tal_count(k) > tal_count(key) + 1) {
243-
log_debug(cmd->ld->log, "Too long");
244237
if (!prev_k || !datastore_key_startswith(k, prev_k)) {
245238
prev_k = tal_dup_arr(cmd, const char *, k,
246239
tal_count(key) + 1, 0);
@@ -249,7 +242,6 @@ static struct command_result *json_listdatastore(struct command *cmd,
249242
json_object_end(response);
250243
}
251244
} else {
252-
log_debug(cmd->ld->log, "Printing");
253245
json_object_start(response, NULL);
254246
json_add_datastore(response, k, data, generation);
255247
json_object_end(response);

0 commit comments

Comments
 (0)