diff --git a/app/logging.js b/app/logging.js index 27975694abdb..29c95607f409 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');