From be977cf7eb76e10866555543aef4809264b393de Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Mon, 17 Feb 2020 12:54:36 +0100 Subject: [PATCH] No new error if already failing --- kernel/log.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/log.cc b/kernel/log.cc index 997c39c64..89a403e63 100644 --- a/kernel/log.cc +++ b/kernel/log.cc @@ -331,7 +331,8 @@ static void logv_error_with_prefix(const char *prefix, f = stderr; log_last_error = vstringf(format, ap); - log("%s%s", prefix, log_last_error.c_str()); + if (check_expected_logs) + log("%s%s", prefix, log_last_error.c_str()); log_flush(); log_make_debug = bak_log_make_debug; -- 2.30.2