From c92aa02961e41d8b40fb632dff035a38fa1ac99e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Sat, 25 Aug 2018 08:25:31 +0300 Subject: [PATCH] Don't use log before initialization The print_log_n_stderr function used to implicitly initialize the log manager. As this is no longer done, no logging must be done before the log manager is initialized. --- server/core/gateway.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/gateway.cc b/server/core/gateway.cc index f0a48d531..e156fd79d 100644 --- a/server/core/gateway.cc +++ b/server/core/gateway.cc @@ -2965,7 +2965,7 @@ static bool sniff_configuration(const char* filepath) snprintf(errorbuffer, sizeof(errorbuffer), FORMAT_MALLOC, filepath); } - print_log_n_stderr(true, true, errorbuffer, errorbuffer, 0); + print_log_n_stderr(false, true, errorbuffer, errorbuffer, 0); } return rv == 0;