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

Don't convert e.g. log_level = "DEBUG" to 10 in TOML config file #78

Merged
merged 2 commits into from
Oct 5, 2024

Conversation

akaihola
Copy link
Owner

@akaihola akaihola commented Oct 2, 2024

While adding unit tests for configuration file options, I noticed that TOML loading converted string debug levels to integers and integer debug levels to strings. This doesn't make sense of course.

@akaihola akaihola added enhancement New feature or request CI/testing/release A new release, or changes to CI builds, testing tooling or release workflow labels Oct 2, 2024
@akaihola akaihola added this to the Darkgraylib 2.0.2 milestone Oct 2, 2024
@akaihola akaihola self-assigned this Oct 2, 2024
@akaihola
Copy link
Owner Author

akaihola commented Oct 2, 2024

@okuuva could you review this? I have test cases for the other options incoming in another PR, and then we should add quiet = test in #77.

@akaihola akaihola force-pushed the load_config-log_level-conversion branch from ea4d2c1 to 6464681 Compare October 2, 2024 14:29
@okuuva
Copy link
Collaborator

okuuva commented Oct 3, 2024

@okuuva could you review this? I have test cases for the other options incoming in another PR, and then we should add quiet = test in #77.

Sure!

Copy link
Collaborator

@okuuva okuuva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@akaihola akaihola force-pushed the load_config-log_level-conversion branch from 6464681 to 6fd22ef Compare October 5, 2024 19:46
@akaihola akaihola merged commit 178e6f3 into main Oct 5, 2024
35 checks passed
@akaihola akaihola deleted the load_config-log_level-conversion branch October 5, 2024 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/testing/release A new release, or changes to CI builds, testing tooling or release workflow enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

2 participants