mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
log: make --log-file an early arg (since we move to dir early now).
Otherwise we bleed plugin log messages to stderr, as they're initted before log-file. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
ZmnSCPxj, ZmnSCPxj jxPCSmnZ
parent
9d4148ce68
commit
e78a80495b
@@ -549,8 +549,7 @@ void opt_register_logging(struct lightningd *ld)
|
|||||||
opt_register_early_arg("--log-prefix", arg_log_prefix, show_log_prefix,
|
opt_register_early_arg("--log-prefix", arg_log_prefix, show_log_prefix,
|
||||||
ld->log,
|
ld->log,
|
||||||
"log prefix");
|
"log prefix");
|
||||||
/* We want this opened later, once we have moved to lightning dir */
|
opt_register_early_arg("--log-file=<file>", arg_log_to_file, NULL, ld,
|
||||||
opt_register_arg("--log-file=<file>", arg_log_to_file, NULL, ld,
|
|
||||||
"log to file instead of stdout");
|
"log to file instead of stdout");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user