@@ -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