Skip to content

Commit

Permalink
Merge pull request #33 from AthennaIO/develop
Browse files Browse the repository at this point in the history
chore: add BOOT_LOGS env in Logger
  • Loading branch information
jlenon7 authored Apr 20, 2022
2 parents 9ace668 + 4fd28b0 commit 7be2e53
Show file tree
Hide file tree
Showing 2 changed files with 2 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.0",
"version": "1.3.1",
"description": "",
"license": "MIT",
"author": "João Lenon <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}) => {},
Expand Down

0 comments on commit 7be2e53

Please sign in to comment.