No new error if already failing
authorMiodrag Milanovic <mmicko@gmail.com>
Mon, 17 Feb 2020 11:54:36 +0000 (12:54 +0100)
committerMiodrag Milanovic <mmicko@gmail.com>
Mon, 17 Feb 2020 11:54:36 +0000 (12:54 +0100)
kernel/log.cc

index 997c39c64885be374acf6e8c2ecaa9caf920e8e3..89a403e63612ae787059a81a746c6ffcae1b8f42 100644 (file)
@@ -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;