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

feat: missing configuration warning #2698

Merged
merged 13 commits into from
Jul 18, 2024

Conversation

lamonato29
Copy link
Contributor

Description

When a configuration is missing in config.lua, you will get a warning in console.
You can ignore the warning and, this way, the default value will be used.

With the warning, you dont need to conflict your config.lua with configmanager.

Behaviour

Actual

If a configuration is missing, the default value will be used and you will not get a warning in console.

Expected

If a configuration is missing, the default value will be used BUT you will receive a warning in console.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested

Delete a configuration string from config.lua and you will receive a warning in console when server starts.

image

Copy link
Contributor

@phacUFPE phacUFPE left a comment

Choose a reason for hiding this comment

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

Leaving a suggestion.

src/config/configmanager.cpp Outdated Show resolved Hide resolved
@lamonato29 lamonato29 requested a review from phacUFPE June 24, 2024 15:04
src/config/configmanager.cpp Outdated Show resolved Hide resolved
@majestyotbr majestyotbr marked this pull request as draft July 11, 2024 19:29
@lamonato29 lamonato29 marked this pull request as ready for review July 18, 2024 12:34
@majestyotbr majestyotbr marked this pull request as draft July 18, 2024 13:52
@majestyotbr majestyotbr marked this pull request as ready for review July 18, 2024 15:19
@majestyotbr majestyotbr merged commit 07df814 into opentibiabr:main Jul 18, 2024
40 checks passed
pasturryx pushed a commit to pasturryx/canary1 that referenced this pull request Aug 1, 2024
When a configuration is missing in config.lua, you will get a warning in console.
You can ignore the warning and, this way, the default value will be used.
With the warning, you dont need to conflict your config.lua with configmanager.
pasturryx pushed a commit to pasturryx/canary1 that referenced this pull request Aug 1, 2024
When a configuration is missing in config.lua, you will get a warning in console.
You can ignore the warning and, this way, the default value will be used.
With the warning, you dont need to conflict your config.lua with configmanager.
@lamonato29 lamonato29 deleted the config-warnin branch November 2, 2024 14:18
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.

5 participants