From 4fd28b0fdb9d678920baca5c054707dd25b492b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lenon?= Date: Tue, 19 Apr 2022 21:55:34 -0300 Subject: [PATCH] chore: add BOOT_LOGS env in Logger --- package.json | 2 +- src/Utils/Logger.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 612de9a..fc0c7b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/core", - "version": "1.3.0", + "version": "1.3.1", "description": "", "license": "MIT", "author": "João Lenon ", diff --git a/src/Utils/Logger.ts b/src/Utils/Logger.ts index 3254cbf..eb1cd8d 100644 --- a/src/Utils/Logger.ts +++ b/src/Utils/Logger.ts @@ -13,7 +13,7 @@ import { Logger as AthennaLogger } from '@athenna/logger' * Mocking the Logger to not show Athenna logs in test environment */ export const Logger: AthennaLogger = - Env('NODE_ENV') === 'test' + Env('NODE_ENV') === 'test' || Env('BOOT_LOGS') === 'false' ? ({ channel: (_channel: string, _runtimeConfig?: any) => {}, log: (_message: any, _options: any = {}) => {},