From 99e246becde312ed299ad7e9d71eaabbd2a6dc4a Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 5 Feb 2018 14:39:28 +1030 Subject: [PATCH] channeld: rely on io_logging, not our own boutique logging. Signed-off-by: Rusty Russell --- channeld/channel.c | 2 +- common/read_peer_msg.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/channeld/channel.c b/channeld/channel.c index 256b04c87..63104b28b 100644 --- a/channeld/channel.c +++ b/channeld/channel.c @@ -204,7 +204,7 @@ static bool peer_write_pending(struct peer *peer) if (!msg) return false; - status_trace("peer_out %s", wire_type_name(fromwire_peektype(msg))); + status_io(LOG_IO_OUT, msg); peer->peer_outmsg = cryptomsg_encrypt_msg(peer, &peer->cs, take(msg)); peer->peer_outoff = 0; return true; diff --git a/common/read_peer_msg.c b/common/read_peer_msg.c index 3e4d6903b..4469cd998 100644 --- a/common/read_peer_msg.c +++ b/common/read_peer_msg.c @@ -29,7 +29,7 @@ static void handle_ping(const u8 *msg, io_error("Bad ping received", arg); } - status_trace("Got ping, sending %s", pong ? + status_debug("Got ping, sending %s", pong ? wire_type_name(fromwire_peektype(pong)) : "nothing"); @@ -55,8 +55,6 @@ u8 *read_peer_msg_(const tal_t *ctx, if (!msg) io_error("reading from peer", arg); - status_trace("peer_in %s", wire_type_name(fromwire_peektype(msg))); - if (is_gossip_msg(msg)) { /* Forward to gossip daemon */ wire_sync_write(gossip_fd, take(msg));