🧑💻 CLI default to error level logging - down from fatal (and small reminder)
This commit is contained in:
committed by
ericlinagora
parent
ab1c97507c
commit
1aed73c16d
@@ -10,7 +10,7 @@ yargs
|
|||||||
.usage("Usage: $0 <command> [options]")
|
.usage("Usage: $0 <command> [options]")
|
||||||
.middleware([
|
.middleware([
|
||||||
argv => {
|
argv => {
|
||||||
logger.level = argv.verbose ? "debug" : "fatal";
|
logger.level = argv.verbose ? "debug" : "error";
|
||||||
if (!argv.quietConfigSummary) {
|
if (!argv.quietConfigSummary) {
|
||||||
console.error("Platform configuration:");
|
console.error("Platform configuration:");
|
||||||
printConfigSummary().forEach(x => console.error(`\t${x}`));
|
printConfigSummary().forEach(x => console.error(`\t${x}`));
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import gr from "../../services/global-resolver";
|
|||||||
import type { TdrivePlatform } from "../../core/platform/platform";
|
import type { TdrivePlatform } from "../../core/platform/platform";
|
||||||
|
|
||||||
//TODO: When this gets used for all commands; update verboseDuringRun from search/index-all and move to root index
|
//TODO: When this gets used for all commands; update verboseDuringRun from search/index-all and move to root index
|
||||||
|
// And consider moving print-config-summary call here.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Start the platform and its services, run the command (passed as
|
* Start the platform and its services, run the command (passed as
|
||||||
|
|||||||
Reference in New Issue
Block a user