From 0e41fb8be9690ca7b81ec4df0734ead1978a9cf0 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Wed, 27 Jan 2021 20:35:12 -0600 Subject: When logging at the debug level, log errors from all sources. --- src/stub/precomp.h | 3 +-- src/stub/stub.cpp | 14 +++++++++++++- 2 files changed, 14 insertions(+), 3 deletions(-) (limited to 'src/stub') diff --git a/src/stub/precomp.h b/src/stub/precomp.h index ad0988b5..bb7ded9c 100644 --- a/src/stub/precomp.h +++ b/src/stub/precomp.h @@ -5,8 +5,7 @@ #include #include - -#define DUTIL_SOURCE_DEFAULT DUTIL_SOURCE_EXTERNAL +#include #include #include diff --git a/src/stub/stub.cpp b/src/stub/stub.cpp index d3ace1f3..0cb202e0 100644 --- a/src/stub/stub.cpp +++ b/src/stub/stub.cpp @@ -87,7 +87,19 @@ static void CALLBACK BurnTraceError( __in va_list args ) { - if (DUTIL_SOURCE_DEFAULT == source) + BOOL fLog = FALSE; + + switch (source) + { + case DUTIL_SOURCE_DEFAULT: + fLog = TRUE; + break; + default: + fLog = REPORT_VERBOSE < LogGetLevel(); + break; + } + + if (fLog) { LogErrorStringArgs(hrError, szFormat, args); } -- cgit v1.2.3-55-g6feb