Added additional electron logging

This commit is contained in:
Tzahi12345
2023-04-19 02:35:24 -04:00
parent 4aa98916ed
commit a2ae9db1c6

View File

@@ -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