If logs are malformed on startup, delete them all and start over

This commit is contained in:
Scott Nonnenberg 2019-02-21 11:40:05 -08:00
parent 4b1ae1535d
commit e4b0901620
2 changed files with 16 additions and 16 deletions

12
main.js
View file

@ -632,17 +632,7 @@ app.on('ready', async () => {
installPermissionsHandler({ session, userConfig });
let loggingSetupError;
try {
await logging.initialize();
} catch (error) {
loggingSetupError = error;
}
if (loggingSetupError) {
console.error('Problem setting up logging', loggingSetupError.stack);
}
await logging.initialize();
logger = logging.getLogger();
logger.info('app ready');