mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
lightningd: don't log JSON ids as debug, use log io.
They are cute, sure, but they do spam the logs. @Suggested-by: @niftynei Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -912,7 +912,9 @@ parse_request(struct json_connection *jcon, const jsmntok_t tok[])
|
||||
"Expected string for method");
|
||||
}
|
||||
|
||||
log_debug(jcon->log, "IN:id=%s", c->id);
|
||||
/* Debug was too chatty, so we use IO here, even though we're
|
||||
* actually just logging the id */
|
||||
log_io(jcon->log, LOG_IO_IN, NULL, c->id, NULL, 0);
|
||||
|
||||
c->json_cmd = find_cmd(jcon->ld->jsonrpc, jcon->buffer, method);
|
||||
if (!c->json_cmd) {
|
||||
@@ -1353,7 +1355,7 @@ struct jsonrpc_request *jsonrpc_request_start_(
|
||||
json_object_start(r->stream, "params");
|
||||
}
|
||||
if (log)
|
||||
log_debug(log, "OUT:id=%s", r->id);
|
||||
log_io(log, LOG_IO_OUT, NULL, r->id, NULL, 0);
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user