Skip to content

Commit cb9d9bb

Browse files
committed
revert: passe verbosity level via config file
Logs were broken due to a bug introduced in 98fd34b
1 parent 91dc128 commit cb9d9bb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/cli/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ export async function run(argv?: string[]) {
6262
.option("--func-args <funcArgs>", "pass additional arguments to the func start command")
6363

6464
.action(async (context: string = `.${path.sep}`, options: SWACLIConfig) => {
65-
const fileOptions = await getFileOptions(context, cli.opts().config);
66-
const verbose = fileOptions.verbose;
65+
const verbose = cli.opts().verbose;
6766

6867
// make sure the start command gets the right verbosity level
6968
process.env.SWA_CLI_DEBUG = verbose;
@@ -72,10 +71,12 @@ export async function run(argv?: string[]) {
7271
// propagate debugging level to other tools using the DEBUG environment variable
7372
process.env.DEBUG = "*";
7473
}
74+
const fileOptions = await getFileOptions(context, cli.opts().config);
7575

7676
options = {
7777
...options,
7878
...fileOptions,
79+
verbose,
7980
};
8081

8182
if (cli.opts().printConfig) {

0 commit comments

Comments
 (0)