1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-30 10:36:35 +02:00

Chore: Fixed CLI logger

This commit is contained in:
Laurent Cozic 2023-08-04 16:42:25 +01:00
parent 4d0b6ae382
commit f116504e88

View File

@ -30,6 +30,7 @@ const { FileApiDriverLocal } = require('@joplin/lib/file-api-driver-local');
const EncryptionService = require('@joplin/lib/services/e2ee/EncryptionService').default;
const envFromArgs = require('@joplin/lib/envFromArgs');
const nodeSqlite = require('sqlite3');
const initLib = require('@joplin/lib/initLib').default;
const env = envFromArgs(process.argv);
@ -67,6 +68,10 @@ function appVersion() {
shimInit({ sharp, keytar, appVersion, nodeSqlite });
const logger = new Logger();
Logger.initializeGlobalLogger(logger);
initLib(logger);
const application = app();
if (process.platform === 'win32') {