@@ -133,33 +133,33 @@ static const char *check_capacity(const tal_t *ctx,
133133
134134 node_stats (rq , node , node_direction , & stats );
135135 if (amount_msat_greater (amount , stats .total .capacity )) {
136- return tal_fmt (ctx ,
137- NO_USABLE_PATHS_STRING
138- " Total %s capacity is only %s"
139- " (in %zu channels)." ,
140- name ,
141- fmt_amount_msat (tmpctx , stats .total .capacity ),
142- stats .total .num_channels );
136+ return rq_log (ctx , rq , LOG_DBG ,
137+ NO_USABLE_PATHS_STRING
138+ " Total %s capacity is only %s"
139+ " (in %zu channels)." ,
140+ name ,
141+ fmt_amount_msat (tmpctx , stats .total .capacity ),
142+ stats .total .num_channels );
143143 }
144144 if (amount_msat_greater (amount , stats .gossip_known .capacity )) {
145- return tal_fmt (ctx ,
146- NO_USABLE_PATHS_STRING
147- " Missing gossip for %s: only known %zu/%zu channels, leaving capacity only %s of %s." ,
148- name ,
149- stats .gossip_known .num_channels ,
150- stats .total .num_channels ,
151- fmt_amount_msat (tmpctx , stats .gossip_known .capacity ),
152- fmt_amount_msat (tmpctx , stats .total .capacity ));
145+ return rq_log (ctx , rq , LOG_DBG ,
146+ NO_USABLE_PATHS_STRING
147+ " Missing gossip for %s: only known %zu/%zu channels, leaving capacity only %s of %s." ,
148+ name ,
149+ stats .gossip_known .num_channels ,
150+ stats .total .num_channels ,
151+ fmt_amount_msat (tmpctx , stats .gossip_known .capacity ),
152+ fmt_amount_msat (tmpctx , stats .total .capacity ));
153153 }
154154 if (amount_msat_greater (amount , stats .enabled .capacity )) {
155- return tal_fmt (ctx ,
156- NO_USABLE_PATHS_STRING
157- " The %s has disabled %zu of %zu channels, leaving capacity only %s of %s." ,
158- name ,
159- stats .total .num_channels - stats .enabled .num_channels ,
160- stats .total .num_channels ,
161- fmt_amount_msat (tmpctx , stats .enabled .capacity ),
162- fmt_amount_msat (tmpctx , stats .total .capacity ));
155+ return rq_log (ctx , rq , LOG_DBG ,
156+ NO_USABLE_PATHS_STRING
157+ " The %s has disabled %zu of %zu channels, leaving capacity only %s of %s." ,
158+ name ,
159+ stats .total .num_channels - stats .enabled .num_channels ,
160+ stats .total .num_channels ,
161+ fmt_amount_msat (tmpctx , stats .enabled .capacity ),
162+ fmt_amount_msat (tmpctx , stats .total .capacity ));
163163 }
164164 return NULL ;
165165}
0 commit comments