From a06fa7f267ef15b287d2513cb1c1969a24627f68 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 23 Nov 2019 12:16:58 +1030 Subject: [PATCH] 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 --- lightningd/log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightningd/log.c b/lightningd/log.c index 3375c394a..ee7acc452 100644 --- a/lightningd/log.c +++ b/lightningd/log.c @@ -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); }