mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-07 20:10:03 +03:00
Added additional electron logging
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user