mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +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:
parent
9d4148ce68
commit
e78a80495b
@ -549,9 +549,8 @@ void opt_register_logging(struct lightningd *ld)
|
||||
opt_register_early_arg("--log-prefix", arg_log_prefix, show_log_prefix,
|
||||
ld->log,
|
||||
"log prefix");
|
||||
/* We want this opened later, once we have moved to lightning dir */
|
||||
opt_register_arg("--log-file=<file>", arg_log_to_file, NULL, ld,
|
||||
"log to file instead of stdout");
|
||||
opt_register_early_arg("--log-file=<file>", arg_log_to_file, NULL, ld,
|
||||
"log to file instead of stdout");
|
||||
}
|
||||
|
||||
void log_backtrace_print(const char *fmt, ...)
|
||||
|
Loading…
Reference in New Issue
Block a user