From 2373840df8c9515bbb2ed6678599a65e96b4263c Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Wed, 7 Mar 2018 14:09:56 -0800 Subject: [PATCH] Use proper logging if error pops when deleting all logs --- app/logging.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/logging.js b/app/logging.js index 27975694a..29c95607f 100644 --- a/app/logging.js +++ b/app/logging.js @@ -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');