Use proper logging if error pops when deleting all logs

This commit is contained in:
Scott Nonnenberg
2018-03-07 14:09:56 -08:00
committed by Scott Nonnenberg
parent 12d9d41548
commit 2373840df8

View File

@@ -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');