File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 2
2
import { Command } from "commander" ;
3
3
import fs from "fs" ;
4
4
import chalk from "chalk" ;
5
- import { logger , OUTPUT_LEVELS } from "./lib/logger.js" ;
5
+ import { logger , OUTPUT_LEVELS , configureLogger } from "./lib/logger.js" ;
6
6
import {
7
7
validateInputs ,
8
8
getUrlList ,
@@ -38,6 +38,7 @@ program
38
38
. parse ( process . argv ) ;
39
39
40
40
const options = program . opts ( ) ;
41
+ configureLogger ( options ) ;
41
42
42
43
// Validate mutually exclusive flags
43
44
if ( options . verbose && options . silent ) {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export const OUTPUT_LEVELS = {
6
6
VERBOSE : 2 ,
7
7
} ;
8
8
9
- export const outputLevel = OUTPUT_LEVELS . NORMAL ;
9
+ export let outputLevel = OUTPUT_LEVELS . NORMAL ;
10
10
11
11
export function configureLogger ( options ) {
12
12
outputLevel = options . silent
You can’t perform that action at this time.
0 commit comments