Skip to content

Commit

Permalink
fix: fix #28, do not display posting key in debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jblew committed Dec 11, 2018
1 parent f50db47 commit c426395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const envMappings: [string, string][] = [

export class ConfigLoader {
public static loadConfig(program: program.Command): Promise<ConfigLoadedFromFile> {
Log.log().debug("Loaded config: " + JSON.stringify(_.set(_.cloneDeep(config), "postingWif", "******")));
const configFiles: string [] = _.cloneDeep(StaticConfig.DEFAULT_CONFIG_FILE_PATHS);
if (program.configFile) configFiles.unshift(program.configFile);

Expand All @@ -65,7 +66,6 @@ export class ConfigLoader {
})
.then(config => ConfigLoader.loadEnv(config))
.then(config => ConfigLoader.validateConfig(config))
.then(config => { Log.log().debug("Loaded config: " + JSON.stringify(config)); return config; });
}

private static loadEnv(config: ConfigLoadedFromFile): ConfigLoadedFromFile {
Expand Down

0 comments on commit c426395

Please sign in to comment.