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

@@ -38,7 +38,7 @@ static void adjust_io_write(struct json_out *jout,
struct json_stream *new_json_stream(const tal_t *ctx,
struct command *writer,
struct log *log)
struct logger *log)
{
struct json_stream *js = tal(ctx, struct json_stream);
@@ -73,7 +73,7 @@ const char *json_stream_detach_filter(const tal_t *ctx, struct json_stream *js)
struct json_stream *json_stream_dup(const tal_t *ctx,
struct json_stream *original,
struct log *log)
struct logger *log)
{
struct json_stream *js = tal_dup(ctx, struct json_stream, original);