Skip to content

Fix CLI overrides LogLevel value from config file#3426

Draft
RubenCerna2079 wants to merge 1 commit intomainfrom
dev/rubencerna/fix-cli-loglevel
Draft

Fix CLI overrides LogLevel value from config file#3426
RubenCerna2079 wants to merge 1 commit intomainfrom
dev/rubencerna/fix-cli-loglevel

Conversation

@RubenCerna2079
Copy link
Copy Markdown
Contributor

Why make this change?

What is this change?

This change moves the args.Add methods inside the ConfigGenerator.cs so that they are only applied when we use the --LogLevel flag. Having these arguments causes DAB to not allow any changes to the LogLevel in the loggers, since those arguments were always being added, DAB always assumed the CLI was overriding the LogLevel when it was not expect.

How was this tested?

  • Integration Tests
  • Unit Tests

Sample Request(s)

dab start --LogLevel information

dab start (With config file default value debug)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant