Skip to content

Commit e2547e6

Browse files
committed
splice: (todo del) clean up stfu log messages
1 parent 623af72 commit e2547e6

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

channeld/channeld.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -284,14 +284,9 @@ static void end_stfu_mode(struct peer *peer)
284284
static void maybe_send_stfu(struct peer *peer)
285285
{
286286
if (!peer->stfu) {
287-
status_unusual("maybe_send_stfu called while not in STFU mode (ignored).");
288287
return;
289288
}
290289

291-
status_debug("maybe_send_stfu but yeschanneld is %s",
292-
type_to_string(tmpctx, struct channel_id,
293-
&peer->channel_id));
294-
295290
if (!peer->stfu_sent[LOCAL] && !pending_updates(peer->channel, LOCAL, false)) {
296291
status_debug("Sending peer that we want to STFU.");
297292
u8 *msg = towire_stfu(NULL, &peer->channel_id,
@@ -300,7 +295,7 @@ static void maybe_send_stfu(struct peer *peer)
300295
peer->stfu_sent[LOCAL] = true;
301296
}
302297
else if(pending_updates(peer->channel, LOCAL, false)) {
303-
status_debug("Pending updates prevent us from STFU mode at this time.");
298+
status_info("Pending updates prevent us from STFU mode at this time.");
304299
}
305300

306301
if (peer->stfu_sent[LOCAL] && peer->stfu_sent[REMOTE]) {
@@ -315,9 +310,6 @@ static void maybe_send_stfu(struct peer *peer)
315310
peer->on_stfu_success = NULL;
316311
}
317312
}
318-
else {
319-
status_debug("STFU in await mode.");
320-
}
321313
}
322314

323315
static void handle_stfu(struct peer *peer, const u8 *stfu)

0 commit comments

Comments
 (0)