Skip to content

Commit

Permalink
feat(logger): Update debugMode to enabled by default in development mode
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Jan 3, 2024
1 parent be8403d commit bc7c7ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/logger/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {platformInfo} from '@alwatr/platform-info';

import type {AlwatrLogger} from './type.js';

export const debugMode = platformInfo.isCli
export const debugMode = platformInfo.development || platformInfo.isCli
? process.env.DEBUG !== undefined && process.env.DEBUG !== ''
: typeof localStorage !== 'undefined' && localStorage.getItem('debug') === '1';

Expand Down

0 comments on commit bc7c7ee

Please sign in to comment.