Skip to content

Commit

Permalink
fix output-format flag on node (#1351)
Browse files Browse the repository at this point in the history
* fix typo

* update workers and yargs outputFmt
  • Loading branch information
bz888 committed Oct 17, 2022
1 parent a6b4df4 commit b6c4ae4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/node/src/indexer/worker/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const { argv } = yargsOptions;

initLogger(
argv.debug,
argv.outputFormat as 'json' | 'colored',
argv.outputFmt as 'json' | 'colored',
argv.logLevel as string | undefined,
);

Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { argv } = yargsOptions;
// initLogger is imported from true path, to make sure getLogger (or other logger values that relies on logger) isn't initialised
initLogger(
argv.debug,
argv.outputFormat as 'json' | 'colored',
argv.outputFmt as 'json' | 'colored',
argv.logLevel as string | undefined,
);

Expand Down
4 changes: 2 additions & 2 deletions packages/node/src/yargs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const yargsOptions = yargs(hideBin(process.argv))
handler: (argv) => {
initLogger(
argv.debug as boolean,
argv.outputFormat as 'json' | 'colored',
argv.outputFmt as 'json' | 'colored',
argv.logLevel as string | undefined,
);

Expand All @@ -37,7 +37,7 @@ export const yargsOptions = yargs(hideBin(process.argv))
handler: (argv) => {
initLogger(
argv.debug as boolean,
argv.outputFormat as 'json' | 'colored',
argv.outputFmt as 'json' | 'colored',
argv.logLevel as string | undefined,
);
// lazy import to make sure logger is instantiated before all other services
Expand Down

0 comments on commit b6c4ae4

Please sign in to comment.