mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
lightning/peer_control: set logging level for peers to match global.
That way it's controlled by --log-level= Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -56,7 +56,8 @@ static struct peer *new_peer(struct lightningd *ld,
|
||||
peer->fd = io_conn_fd(conn);
|
||||
peer->connect_cmd = cmd;
|
||||
/* Max 128k per peer. */
|
||||
peer->log_book = new_log_book(peer, 128*1024, LOG_UNUSUAL);
|
||||
peer->log_book = new_log_book(peer, 128*1024,
|
||||
get_log_level(ld->dstate.log_book));
|
||||
peer->log = new_log(peer, peer->log_book,
|
||||
"peer %"PRIu64":", peer->unique_id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user