Use proper logging if error pops when deleting all logs
This commit is contained in:

committed by
Scott Nonnenberg

parent
12d9d41548
commit
2373840df8
@@ -73,8 +73,8 @@ function initialize() {
|
|||||||
ipc.on('delete-all-logs', async (event) => {
|
ipc.on('delete-all-logs', async (event) => {
|
||||||
try {
|
try {
|
||||||
await deleteAllLogs(logPath);
|
await deleteAllLogs(logPath);
|
||||||
} catch (e) {
|
} catch (error) {
|
||||||
console.log('Something went wrong!');
|
logger.error(`Problem deleting all logs: ${error.stack}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
event.sender.send('delete-all-logs-complete');
|
event.sender.send('delete-all-logs-complete');
|
||||||
|
Reference in New Issue
Block a user