Use proper logging if error pops when deleting all logs
This commit is contained in:
parent
12d9d41548
commit
2373840df8
1 changed files with 2 additions and 2 deletions
|
@ -73,8 +73,8 @@ function initialize() {
|
|||
ipc.on('delete-all-logs', async (event) => {
|
||||
try {
|
||||
await deleteAllLogs(logPath);
|
||||
} catch (e) {
|
||||
console.log('Something went wrong!');
|
||||
} catch (error) {
|
||||
logger.error(`Problem deleting all logs: ${error.stack}`);
|
||||
}
|
||||
|
||||
event.sender.send('delete-all-logs-complete');
|
||||
|
|
Loading…
Reference in a new issue