Use proper logging if error pops when deleting all logs

pull/1/head
Scott Nonnenberg 7 years ago committed by Scott Nonnenberg
parent 12d9d41548
commit 2373840df8
No known key found for this signature in database
GPG Key ID: 5F82280C35134661

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

Loading…
Cancel
Save