From cbf56b54c1cf73f6d79490bdd8763f66a1c253ca Mon Sep 17 00:00:00 2001 From: Filip Rojek Date: Thu, 2 May 2024 02:08:08 +0200 Subject: [PATCH] Fix: info log return in Log module --- src/modules/LogService.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/modules/LogService.ts b/src/modules/LogService.ts index f656f24..5470c66 100644 --- a/src/modules/LogService.ts +++ b/src/modules/LogService.ts @@ -3,11 +3,18 @@ import fs from 'fs' import path from 'path' export default class Log { - public static info(code: number, message: string, data?: any): void { + public static info(code: number, message: string, data?: any): object { if (!data) { data = '' } + console.log(colors.bgGreen.black(` ${code} `) + colors.green.bgBlack(` ${message} `) + data) + //this.writeLog('info', code, message, data) + return { + code: code, + message: message, + data: data + } } public static error(code: number, message: string, data?: any): object {