From e91a8dff12f8a5634459df543e5fac2b7cb32358 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Mon, 15 Jan 2018 23:47:25 +0100 Subject: [PATCH] Change log level for some common debug messages from "info" to "debug" --- lightningd/jsonrpc.c | 2 +- lightningd/subd.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lightningd/jsonrpc.c b/lightningd/jsonrpc.c index 3ac744883..d01728b77 100644 --- a/lightningd/jsonrpc.c +++ b/lightningd/jsonrpc.c @@ -652,7 +652,7 @@ static struct io_plan *jcon_connected(struct io_conn *conn, static struct io_plan *incoming_jcon_connected(struct io_conn *conn, struct lightningd *ld) { - log_info(ld->log, "Connected json input"); + log_debug(ld->log, "Connected json input"); /* Lifetime of JSON conn is limited to fd connect time. */ return jcon_connected(notleak(conn), ld); diff --git a/lightningd/subd.c b/lightningd/subd.c index e49c310b3..8d4e96237 100644 --- a/lightningd/subd.c +++ b/lightningd/subd.c @@ -274,8 +274,8 @@ static struct io_plan *sd_msg_reply(struct io_conn *conn, struct subd *sd, const tal_t *tmpctx = tal_tmpctx(conn); int *fds_in; - log_info(sd->log, "REPLY %s with %zu fds", - sd->msgname(type), tal_count(sd->fds_in)); + log_debug(sd->log, "REPLY %s with %zu fds", + sd->msgname(type), tal_count(sd->fds_in)); /* Callback could free sd! Make sure destroy_subd() won't free conn */ sd->conn = NULL; @@ -464,7 +464,7 @@ static struct io_plan *sd_msg_read(struct io_conn *conn, struct subd *sd) goto close; } - log_info(sd->log, "UPDATE %s", sd->msgname(type)); + log_debug(sd->log, "UPDATE %s", sd->msgname(type)); if (sd->msgcb) { unsigned int i; bool freed = false; @@ -639,7 +639,7 @@ static struct subd *new_subd(struct lightningd *ld, sd->conn = io_new_conn(ld, msg_fd, msg_setup, sd); tal_steal(sd->conn, sd); - log_info(sd->log, "pid %u, msgfd %i", sd->pid, msg_fd); + log_debug(sd->log, "pid %u, msgfd %i", sd->pid, msg_fd); return sd; }