mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-23 04:53:21 +03:00
More electron error logging
This commit is contained in:
@@ -53,8 +53,9 @@ function loadPage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function createWindow() {
|
function createWindow() {
|
||||||
|
elogger.info('Spawning server.')
|
||||||
serverProcess = spawn('node', [path.join(__dirname, 'app.js')]);
|
serverProcess = spawn('node', [path.join(__dirname, 'app.js')]);
|
||||||
|
elogger.info('Done spawning!')
|
||||||
createMainWindow();
|
createMainWindow();
|
||||||
createSplashWindow();
|
createSplashWindow();
|
||||||
|
|
||||||
@@ -80,6 +81,7 @@ function createWindow() {
|
|||||||
|
|
||||||
process.on('uncaughtException', (error) => {
|
process.on('uncaughtException', (error) => {
|
||||||
console.error('Uncaught exception:', error);
|
console.error('Uncaught exception:', error);
|
||||||
|
elogger.error(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user