Skip to content

Commit

Permalink
fix: fixed logger cpu issue; do not parse info/warn levels in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Dec 14, 2024
1 parent c0f4b2e commit 3605a66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ module.exports = {
logger: typeof window === 'object' ? console : signale,
level: env.NODE_ENV === 'production' ? 'info' : 'debug',
levels:
// ? ['info', 'warn', 'error', 'fatal']
env.NODE_ENV === 'production'
? ['info', 'warn', 'error', 'fatal']
? ['error', 'fatal']
: ['trace', 'info', 'debug', 'warn', 'error', 'fatal'],
showStack: env.AXE_SHOW_STACK,
meta: {
Expand Down

0 comments on commit 3605a66

Please sign in to comment.