diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2020-07-12 17:07:55 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2020-07-12 17:16:16 +1000 |
| commit | dc558da002794cc07013e8376f3c55c73391aa0e (patch) | |
| tree | faba96f981f1ea0c6888b387cf43cc78d0bc2927 /src/dutil/dutil.cpp | |
| parent | aeddc77fc021f11f68a4c1a093eabf9776866b80 (diff) | |
| download | wix-dc558da002794cc07013e8376f3c55c73391aa0e.tar.gz wix-dc558da002794cc07013e8376f3c55c73391aa0e.tar.bz2 wix-dc558da002794cc07013e8376f3c55c73391aa0e.zip | |
Update Dutil_TraceErrorSource to filter based on the report level.
Diffstat (limited to 'src/dutil/dutil.cpp')
| -rw-r--r-- | src/dutil/dutil.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dutil/dutil.cpp b/src/dutil/dutil.cpp index a32de516..99ce1bc6 100644 --- a/src/dutil/dutil.cpp +++ b/src/dutil/dutil.cpp | |||
| @@ -408,6 +408,12 @@ DAPIV_(void) Dutil_TraceErrorSource( | |||
| 408 | ... | 408 | ... |
| 409 | ) | 409 | ) |
| 410 | { | 410 | { |
| 411 | // if this is NOT an error report and we're not logging at this level, bail | ||
| 412 | if (REPORT_ERROR != rl && Dutil_rlCurrentTrace < rl) | ||
| 413 | { | ||
| 414 | return; | ||
| 415 | } | ||
| 416 | |||
| 411 | if (DUTIL_SOURCE_UNKNOWN != source && vpfnTraceErrorCallback) | 417 | if (DUTIL_SOURCE_UNKNOWN != source && vpfnTraceErrorCallback) |
| 412 | { | 418 | { |
| 413 | va_list args; | 419 | va_list args; |
