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

Store config errors and warnings into Configuration attributes #1984

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

boliri
Copy link

@boliri boliri commented May 17, 2019

Both @mgarcian and me modified all classes regarding to Shinken object definitions in order to store configuration errors and warnings into instances of these classes. These errors are lifted up to Configuration instances so they are gathered up together into a single place.

Users are now capable of validating Shinken configurations by spawning Arbiter instances in a programmatic manner and collect config errors and warnings to perform some sort of post-processing over them.

Errors and warnings are now logged into files in a single step.
Moreover, these traces can now be collected from external applications
after spawning Arbiter instances and validating configs.
@coveralls
Copy link

coveralls commented May 17, 2019

Coverage Status

Coverage increased (+0.06%) to 27.772% when pulling 2b73c0b on boliri:master into 3c56297 on naparuba:master.

While they are no longer stored into config objects, they are still
written to Shinken logs.
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.

2 participants