From a2ae9db1c67b767450bec815ccca56203a48b0d0 Mon Sep 17 00:00:00 2001 From: Tzahi12345 Date: Wed, 19 Apr 2023 02:35:24 -0400 Subject: [PATCH] Added additional electron logging --- backend/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/main.js b/backend/main.js index 011461f..ec08913 100644 --- a/backend/main.js +++ b/backend/main.js @@ -60,10 +60,12 @@ function createWindow() { // Log the server output to the console serverProcess.stdout.on('data', (data) => { - if (data.toString().includes('started on PORT')) { + const data_str = data.toString(); + if (data_str.includes('started on PORT')) { loadPage(); } console.log(`Server output: ${data}`); + elogger.info(data_str); }); // Log any errors to the console