@@ -222,10 +222,6 @@ static struct command_result *json_listdatastore(struct command *cmd,
222
222
NULL ))
223
223
return command_param_failed ();
224
224
225
- if (key )
226
- log_debug (cmd -> ld -> log , "Looking for %s" ,
227
- datastore_key_fmt (tmpctx , key ));
228
-
229
225
response = json_stream_success (cmd );
230
226
json_array_start (response , "datastore" );
231
227
@@ -235,12 +231,9 @@ static struct command_result *json_listdatastore(struct command *cmd,
235
231
stmt = wallet_datastore_next (cmd , key ,
236
232
stmt , & k , & data ,
237
233
& generation )) {
238
- log_debug (cmd -> ld -> log , "Got %s" ,
239
- datastore_key_fmt (tmpctx , k ));
240
234
241
235
/* Don't list sub-children, except as summary to show it exists. */
242
236
if (tal_count (k ) > tal_count (key ) + 1 ) {
243
- log_debug (cmd -> ld -> log , "Too long" );
244
237
if (!prev_k || !datastore_key_startswith (k , prev_k )) {
245
238
prev_k = tal_dup_arr (cmd , const char * , k ,
246
239
tal_count (key ) + 1 , 0 );
@@ -249,7 +242,6 @@ static struct command_result *json_listdatastore(struct command *cmd,
249
242
json_object_end (response );
250
243
}
251
244
} else {
252
- log_debug (cmd -> ld -> log , "Printing" );
253
245
json_object_start (response , NULL );
254
246
json_add_datastore (response , k , data , generation );
255
247
json_object_end (response );
0 commit comments