Skip to content

Commit 76f8bef

Browse files
committed
Include some basic logs from the desktop wrapper in the logfile too
1 parent ee56dd4 commit 76f8bef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ if (!amMainInstance) {
128128
app.quit();
129129
} else {
130130
const logStream = createWriteStream(path.join(LOGS_PATH, 'last-run.log'));
131+
logStream.write(`--- Launching HTTP Toolkit desktop v${DESKTOP_VERSION} ---\n`);
131132

132133
const args = yargs
133134
.option('with-forwarding', {
@@ -253,6 +254,7 @@ if (!amMainInstance) {
253254
}
254255

255256
function showErrorAlert(title: string, body: string) {
257+
logStream.write(`ALERT: ${title}: ${body}\n`);
256258
console.warn(`${title}: ${body}`);
257259
dialog.showErrorBox(title, body);
258260
}

0 commit comments

Comments
 (0)