Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update log level to Warning if allowUnknownOptions sets to true #3848

Merged

Conversation

dhingrak
Copy link
Contributor

Fixed: Update log level to Warning if allowUnknownOptions sets to true

Fixes https://linear.app/eventstore/issue/DB-60/unknown-options-log-level-when-allowunknownoptions-is-enabled

The goal of this PR is to update the log level from INF to WRN when allowUnknownOptions sets to true. This will help to detect the cases where user accidentally entered the incorrect option.

@linear
Copy link

linear bot commented May 18, 2023

DB-60 Unknown options log level when `AllowUnknownOptions` is enabled

Suggestion by yves.lorphelin

Also when using  AllowUnknownOptions, shouldn't the log level be WRN instead of INF? Otherwise it will never be acted upon.

It might be that the customer mistyped an option name, and when invalid options are allowed, it won't do anything, and with INF log level the issue won't be noticed.

[24716, 1,10:21:19.195,INF] The option "AdvertiseHostToClientS" is not a known option. Did you mean "AdvertiseHostToClientAs"

@dhingrak dhingrak self-assigned this May 18, 2023
@timothycoleman timothycoleman merged commit ebfbe56 into master May 23, 2023
10 of 11 checks passed
@timothycoleman timothycoleman deleted the kunal/update-log-level-for-allowUnknownOptions branch May 23, 2023 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants