lightningd/log: clean up nomenclature.

`struct log` becomes `struct logger`, and the member which points to the
`struct log_book` becomes `->log_book` not `->lr`.

Also, we don't need to keep the log_book in struct plugin, since it has
access to ld's log_book.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2023-07-16 15:26:52 +09:30
parent 19d80e1f08
commit c074fe050f
37 changed files with 254 additions and 256 deletions

View File

@@ -134,10 +134,10 @@ struct lightningd {
/* Where each configuration setting came from */
struct configvar **configvars;
/* This log_book is owned by all the struct logs */
/* This log_book is owned by all the struct loggers */
struct log_book *log_book;
/* Log for general stuff. */
struct log *log;
struct logger *log;
const char **logfiles;
/* This is us. */