8
main.js
8
main.js
@@ -632,13 +632,13 @@ app.on('ready', async () => {
|
||||
loggingSetupError = error;
|
||||
}
|
||||
|
||||
if (loggingSetupError) {
|
||||
console.error('Problem setting up logging', loggingSetupError.stack);
|
||||
}
|
||||
|
||||
logger = logging.getLogger();
|
||||
logger.info('app ready');
|
||||
|
||||
if (loggingSetupError) {
|
||||
logger.error('Problem setting up logging', loggingSetupError.stack);
|
||||
}
|
||||
|
||||
if (!locale) {
|
||||
const appLocale = process.env.NODE_ENV === 'test' ? 'en' : app.getLocale();
|
||||
locale = loadLocale({ appLocale, logger });
|
||||
|
Reference in New Issue
Block a user