diff --git a/src/common/logger.ts b/src/common/logger.ts index 8237894334..172f3e2fe8 100644 --- a/src/common/logger.ts +++ b/src/common/logger.ts @@ -11,11 +11,10 @@ import { isDebugging, isTestEnv } from "./vars"; import BrowserConsole from "winston-transport-browserconsole"; export interface Logger { - info: (...args: any) => void; - error: (...args: any) => void; - debug: (...args: any) => void; - log: (...args: any) => void; - warn: (...args: any) => void; + info: (message: string, ...args: any) => void; + error: (message: string, ...args: any) => void; + debug: (message: string, ...args: any) => void; + warn: (message: string, ...args: any) => void; } const logLevel = process.env.LOG_LEVEL diff --git a/src/main/getDiForUnitTesting.ts b/src/main/getDiForUnitTesting.ts index 262f3e6883..157806750e 100644 --- a/src/main/getDiForUnitTesting.ts +++ b/src/main/getDiForUnitTesting.ts @@ -90,8 +90,7 @@ export const getDiForUnitTesting = ( di.override(loggerInjectable, () => ({ warn: noop, debug: noop, - log: noop, - error: (...args: any) => console.error(...args), + error: (message: string, ...args: any) => console.error(message, ...args), info: noop, })); } diff --git a/src/renderer/getDiForUnitTesting.tsx b/src/renderer/getDiForUnitTesting.tsx index e0540b7e61..06bf0cb828 100644 --- a/src/renderer/getDiForUnitTesting.tsx +++ b/src/renderer/getDiForUnitTesting.tsx @@ -72,8 +72,7 @@ export const getDiForUnitTesting = ( di.override(loggerInjectable, () => ({ warn: noop, debug: noop, - log: noop, - error: (...args: any) => console.error(...args), + error: (message: string, ...args: any) => console.error(message, ...args), info: noop, })); }