summaryrefslogtreecommitdiff
path: root/src/burn/engine/logging.cpp
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2022-05-03 15:26:07 -0500
committerSean Hall <r.sean.hall@gmail.com>2022-05-04 10:05:21 -0500
commite3671abae2f22c3ad7d205aa743bed73ff55e512 (patch)
treeb8d8e84e5d71f21e02c89a0da7a819e7a2078e50 /src/burn/engine/logging.cpp
parent5b04bce6567855325810bc4e6bcd2f6e05b329c7 (diff)
downloadwix-e3671abae2f22c3ad7d205aa743bed73ff55e512.tar.gz
wix-e3671abae2f22c3ad7d205aa743bed73ff55e512.tar.bz2
wix-e3671abae2f22c3ad7d205aa743bed73ff55e512.zip
Allow burn.runonce with burn.clean.room and create runonce log.
Diffstat (limited to 'src/burn/engine/logging.cpp')
-rw-r--r--src/burn/engine/logging.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/burn/engine/logging.cpp b/src/burn/engine/logging.cpp
index 0b510f3d..1b2bec1f 100644
--- a/src/burn/engine/logging.cpp
+++ b/src/burn/engine/logging.cpp
@@ -39,7 +39,17 @@ extern "C" HRESULT LoggingOpen(
39 HRESULT hr = S_OK; 39 HRESULT hr = S_OK;
40 LPWSTR sczLoggingBaseFolder = NULL; 40 LPWSTR sczLoggingBaseFolder = NULL;
41 LPWSTR sczPrefixFormatted = NULL; 41 LPWSTR sczPrefixFormatted = NULL;
42 LPCWSTR wzPostfix = BURN_MODE_UNTRUSTED == pInternalCommand->mode ? L".cleanroom" : NULL; 42 LPCWSTR wzPostfix = NULL;
43
44 switch (pInternalCommand->mode)
45 {
46 case BURN_MODE_UNTRUSTED:
47 wzPostfix = L".cleanroom";
48 break;
49 case BURN_MODE_RUNONCE:
50 wzPostfix = L".runonce";
51 break;
52 }
43 53
44 hr = InitializeLogging(pLog, pInternalCommand); 54 hr = InitializeLogging(pLog, pInternalCommand);
45 ExitOnFailure(hr, "Failed to initialize logging."); 55 ExitOnFailure(hr, "Failed to initialize logging.");