Skip to content

Commit

Permalink
fix: prevent validation from being a breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhendumadhukar committed Oct 26, 2022
1 parent 8fcf41e commit da23c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const start = (
configLoader.validateAndLoad();
setLoaderInstance(configLoader);
const config: CamouflageConfig = getLoaderInstance().getConfig();
const validation = Validation.create(config.validation);
if (config.validation && config.validation.enable) Validation.create(config.validation);
// Set log level to the configured level from config.yaml
setLogLevel(config.loglevel);
logger.debug(JSON.stringify(config, null, 2));
Expand Down

0 comments on commit da23c41

Please sign in to comment.