diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2021-01-27 20:35:12 -0600 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2021-01-27 20:38:48 -0600 |
| commit | 0e41fb8be9690ca7b81ec4df0734ead1978a9cf0 (patch) | |
| tree | 6f3bb0ddd07107b50b579285f2423b6ff8c403c4 /src/stub/stub.cpp | |
| parent | 84e3b69bdd1b6811dec8041ebc2a23020ac4c179 (diff) | |
| download | wix-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/stub.cpp')
| -rw-r--r-- | src/stub/stub.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
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 | } |
