Skip to content

Commit

Permalink
chore: validate boot logs env in console.clear
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Apr 20, 2022
1 parent 4fd28b0 commit 5522d40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/core",
"version": "1.3.1",
"version": "1.3.2",
"description": "",
"license": "MIT",
"author": "João Lenon <[email protected]>",
Expand Down
4 changes: 3 additions & 1 deletion src/Ignite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5522d40

Please sign in to comment.