Skip to content

Commit 49ed566

Browse files
authored
chore(@rsbuild/shared): set logger.level in isDebug() function (#2117)
1 parent 00a598f commit 49ed566

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/shared/src/logger.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const isDebug = () => {
1111
return false;
1212
}
1313

14+
logger.level = 'verbose'; // support `process.env.DEBUG` in e2e
1415
const values = process.env.DEBUG.toLocaleLowerCase().split(',');
1516
return ['rsbuild', 'builder', '*'].some((key) => values.includes(key));
1617
};

0 commit comments

Comments
 (0)