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

WiP: Clean elements groups and refactor configuration warnings/errors logging #331

Merged
merged 40 commits into from
Sep 13, 2016

Conversation

mohierf
Copy link
Contributor

@mohierf mohierf commented Sep 12, 2016

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 50.09% when pulling d573039 on #110 into f2254e3 on develop+enhanceunittests.

@coveralls
Copy link

Coverage Status

Coverage decreased (-4.0e-05%) to 50.099% when pulling 03be436 on #110 into f2254e3 on develop+enhanceunittests.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.006%) to 50.093% when pulling e122545 on #110 into f2254e3 on develop+enhanceunittests.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 50.119% when pulling 327b4ce on #110 into f2254e3 on develop+enhanceunittests.

@coveralls
Copy link

Coverage Status

Coverage decreased (-3.0e-05%) to 50.099% when pulling 7612cfd on #110 into f2254e3 on develop+enhanceunittests.

@mohierf mohierf changed the title WiP: Clean elements groups and refactor groups tests WiP: Clean elements groups and refactor wonfiguration warnings/errors logging Sep 13, 2016
@coveralls
Copy link

Coverage Status

Coverage increased (+0.6%) to 50.694% when pulling b1384ec on #110 into f2254e3 on develop+enhanceunittests.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.6%) to 50.72% when pulling b1384ec on #110 into f2254e3 on develop+enhanceunittests.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.6%) to 50.726% when pulling ef09417 on #110 into f2254e3 on develop+enhanceunittests.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.6%) to 50.726% when pulling 186b2f9 on #110 into f2254e3 on develop+enhanceunittests.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.6%) to 50.72% when pulling 186b2f9 on #110 into f2254e3 on develop+enhanceunittests.

@mohierf mohierf changed the title WiP: Clean elements groups and refactor wonfiguration warnings/errors logging WiP: Clean elements groups and refactor configuration warnings/errors logging Sep 13, 2016
if self.configuration_warnings:
logger.info("Configuration warnings:")
for msg in self.configuration_warnings:
logger.info(msg)
Copy link
Contributor

Choose a reason for hiding this comment

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

for warning and errors, use logger.warning instead logger.info

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, bad idea. As explained in the comment, using INFO is better beceause these logs are simply used to build a sum-up when configuration check is finished. If we use WARNING and ERROR, each warning and error will appera twice in the logs ... bad idea if we want to parse the logs with an application like LogStash :/

@coveralls
Copy link

coveralls commented Sep 13, 2016

Coverage Status

Coverage increased (+13.4%) to 63.496% when pulling b1cb3c5 on #110 into f2254e3 on develop+enhanceunittests.

@@ -301,6 +301,14 @@ def get_name(self):
return self.name
return 'SERVICE-DESCRIPTION-MISSING'

def get_servicegroups(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

We can remove this function by replace get_servicegroups() calls by self.servicegroups

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, why not ... but there is so much functions like this one. We should organize another code cleaning session to fix all this kind of functions later.

Copy link
Contributor

Choose a reason for hiding this comment

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

okay

@ddurieux ddurieux merged commit 7936fe1 into develop+enhanceunittests Sep 13, 2016
@mohierf mohierf deleted the #110 branch September 14, 2016 13:24
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