From 5522d4039caffbff3893724817a0d3c33907f0fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lenon?= Date: Tue, 19 Apr 2022 22:09:18 -0300 Subject: [PATCH] chore: validate boot logs env in console.clear --- package.json | 2 +- src/Ignite.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fc0c7b6..08a5343 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/core", - "version": "1.3.1", + "version": "1.3.2", "description": "", "license": "MIT", "author": "João Lenon ", diff --git a/src/Ignite.ts b/src/Ignite.ts index a314758..bc0c1a0 100644 --- a/src/Ignite.ts +++ b/src/Ignite.ts @@ -183,7 +183,9 @@ export class Ignite { private clearConsole() { const isNotDebugModeOrTesting = !Env('APP_DEBUG') && - (Env('NODE_ENV') === 'test' || Env('NODE_ENV') === 'testing') + (Env('NODE_ENV') === 'test' || + Env('NODE_ENV') === 'testing' || + Env('BOOT_LOGS') === 'false') if (isNotDebugModeOrTesting) { return