Skip to content

Commit

Permalink
renaming things
Browse files Browse the repository at this point in the history
  • Loading branch information
kraftp committed Jan 22, 2025
1 parent c6cce8d commit b900e69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/dbos-runtime/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export interface DBOSCLIStartOptions {
configfile?: string;
appDir?: string;
appVersion?: string | boolean;
logWhileParsing?: boolean; // Not a real option--a workaround to prevent the parser's log lines from printing twice
skipLoggingInParse?: boolean; // Not a real option--a workaround to prevent the parser's log lines from printing twice
}

export interface DBOSConfigureOptions {
Expand Down Expand Up @@ -60,7 +60,7 @@ program
if (options?.configfile) {
console.warn("\x1b[33m%s\x1b[0m", "The --configfile option is deprecated. Please use --appDir instead.");
}
options.logWhileParsing = false;
options.skipLoggingInParse = true;
const [dbosConfig, runtimeConfig]: [DBOSConfig, DBOSRuntimeConfig] = parseConfigFile(options);
// If no start commands are provided, start the DBOS runtime
if (runtimeConfig.start.length === 0) {
Expand Down
4 changes: 2 additions & 2 deletions src/dbos-runtime/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export function retrieveApplicationName(configFile: ConfigFile): string {
export function constructPoolConfig(configFile: ConfigFile, cliOptions?: ParseOptions) {
// Load database connection parameters. If they're not in dbos-config.yaml, load from .dbos/db_connection. Else, use defaults.
const databaseConnection = loadDatabaseConnection();
if (cliOptions?.logWhileParsing !== false) {
if (cliOptions?.skipLoggingInParse !== true) {
const logger = new GlobalLogger();
if (configFile["database"]["hostname"]) {
logger.info("Loading database connection parameters from dbos-config.yaml");
Expand Down Expand Up @@ -190,7 +190,7 @@ export interface ParseOptions {
configfile?: string;
appDir?: string;
appVersion?: string | boolean;
logWhileParsing?: boolean;
skipLoggingInParse?: boolean;
}

/*
Expand Down

0 comments on commit b900e69

Please sign in to comment.