mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
log: print UNUSUAL messages before log initialization too.
Otherwise we don't print out the upgrading messages when we move things! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
57a32ee044
commit
a06fa7f267
@ -307,9 +307,9 @@ const char *log_prefix(const struct log *log)
|
||||
enum log_level log_print_level(struct log *log)
|
||||
{
|
||||
if (!log->print_level) {
|
||||
/* Not set globally yet? Print BROKEN messages only */
|
||||
/* Not set globally yet? Print UNUSUAL / BROKEN messages only */
|
||||
if (!log->lr->default_print_level)
|
||||
return LOG_BROKEN;
|
||||
return LOG_UNUSUAL;
|
||||
log->print_level = tal(log, enum log_level);
|
||||
*log->print_level = filter_level(log->lr, log->prefix);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user