aboutsummaryrefslogtreecommitdiff
path: root/src/stub
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2021-01-27 20:35:12 -0600
committerSean Hall <r.sean.hall@gmail.com>2021-01-27 20:38:48 -0600
commit0e41fb8be9690ca7b81ec4df0734ead1978a9cf0 (patch)
tree6f3bb0ddd07107b50b579285f2423b6ff8c403c4 /src/stub
parent84e3b69bdd1b6811dec8041ebc2a23020ac4c179 (diff)
downloadwix-0e41fb8be9690ca7b81ec4df0734ead1978a9cf0.tar.gz
wix-0e41fb8be9690ca7b81ec4df0734ead1978a9cf0.tar.bz2
wix-0e41fb8be9690ca7b81ec4df0734ead1978a9cf0.zip
When logging at the debug level, log errors from all sources.
Diffstat (limited to 'src/stub')
-rw-r--r--src/stub/precomp.h3
-rw-r--r--src/stub/stub.cpp14
2 files changed, 14 insertions, 3 deletions
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 @@
5#include <windows.h> 5#include <windows.h>
6 6
7#include <dutilsources.h> 7#include <dutilsources.h>
8 8#include <burnsources.h>
9#define DUTIL_SOURCE_DEFAULT DUTIL_SOURCE_EXTERNAL
10 9
11#include <dutil.h> 10#include <dutil.h>
12#include <apputil.h> 11#include <apputil.h>
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(
87 __in va_list args 87 __in va_list args
88 ) 88 )
89{ 89{
90 if (DUTIL_SOURCE_DEFAULT == source) 90 BOOL fLog = FALSE;
91
92 switch (source)
93 {
94 case DUTIL_SOURCE_DEFAULT:
95 fLog = TRUE;
96 break;
97 default:
98 fLog = REPORT_VERBOSE < LogGetLevel();
99 break;
100 }
101
102 if (fLog)
91 { 103 {
92 LogErrorStringArgs(hrError, szFormat, args); 104 LogErrorStringArgs(hrError, szFormat, args);
93 } 105 }