mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-17 02:31:28 +03:00
Added additional electron logging
This commit is contained in:
@@ -60,10 +60,12 @@ function createWindow() {
|
|||||||
|
|
||||||
// Log the server output to the console
|
// Log the server output to the console
|
||||||
serverProcess.stdout.on('data', (data) => {
|
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();
|
loadPage();
|
||||||
}
|
}
|
||||||
console.log(`Server output: ${data}`);
|
console.log(`Server output: ${data}`);
|
||||||
|
elogger.info(data_str);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Log any errors to the console
|
// Log any errors to the console
|
||||||
|
|||||||
Reference in New Issue
Block a user