1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-13 00:10:37 +02:00

Fix logger type

This commit is contained in:
Laurent Cozic
2020-11-25 09:40:54 +00:00
parent 9a2fd97f3c
commit 416a7b36e7
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
import Setting from './models/Setting'; import Setting from './models/Setting';
import Logger, { TargetType } from './Logger'; import Logger, { TargetType, LoggerWrapper } from './Logger';
import shim from './shim'; import shim from './shim';
import BaseService from './services/BaseService'; import BaseService from './services/BaseService';
import reducer from './reducer'; import reducer from './reducer';
@ -46,7 +46,7 @@ const MigrationService = require('./services/MigrationService');
const { toSystemSlashes } = require('./path-utils'); const { toSystemSlashes } = require('./path-utils');
const { setAutoFreeze } = require('immer'); const { setAutoFreeze } = require('immer');
const appLogger = Logger.create('App'); const appLogger: LoggerWrapper = Logger.create('App');
// const ntpClient = require('./vendor/ntp-client'); // const ntpClient = require('./vendor/ntp-client');
// ntpClient.dgram = require('dgram'); // ntpClient.dgram = require('dgram');
@ -103,7 +103,7 @@ export default class BaseApplication {
this.decryptionWorker_resourceMetadataButNotBlobDecrypted = null; this.decryptionWorker_resourceMetadataButNotBlobDecrypted = null;
} }
logger() { logger(): LoggerWrapper {
return appLogger; return appLogger;
} }

View File

@ -26,7 +26,7 @@ interface Target {
source?: string; source?: string;
} }
interface LoggerWrapper { export interface LoggerWrapper {
debug: Function; debug: Function;
info: Function; info: Function;
warn: Function; warn: Function;