Browse Source

channeld: rely on io_logging, not our own boutique logging.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
parent
commit
99e246becd
  1. 2
      channeld/channel.c
  2. 4
      common/read_peer_msg.c

2
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;

4
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));

Loading…
Cancel
Save