Adjusting logs
This commit is contained in:
parent
6da08b807c
commit
9e88af06ee
4
main.js
4
main.js
|
@ -947,14 +947,12 @@ ipc.on('close-debug-log', () => {
|
|||
}
|
||||
});
|
||||
ipc.on('save-debug-log', (event, logText) => {
|
||||
console.log(logText);
|
||||
|
||||
const outputPath = path.join(app.getPath('desktop'), `session_debug_${new Date()}.log`);
|
||||
fs.writeFile(outputPath, logText, err => {
|
||||
if (err) {
|
||||
console.error('Error saving debug log');
|
||||
}
|
||||
console.warn('Successfully saved log');
|
||||
console.error(`Saved log - ${outputPath}`);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue