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

replace print with logging in tests #1372

Closed
RafalSkolasinski opened this issue Jan 27, 2020 · 3 comments · Fixed by #1424
Closed

replace print with logging in tests #1372

RafalSkolasinski opened this issue Jan 27, 2020 · 3 comments · Fixed by #1424
Assignees
Milestone

Comments

@RafalSkolasinski
Copy link
Contributor

Some tests, e.g. python/tests/test_router_microservice.py, are using print statements to ease debugging on failure.

It may be a good idea to replace them with proper logging.

(Though, personally I am not sure if there is much benefit from doing that for tests).

@RafalSkolasinski RafalSkolasinski added the triage Needs to be triaged and prioritised accordingly label Jan 27, 2020
@ukclivecox ukclivecox removed the triage Needs to be triaged and prioritised accordingly label Jan 31, 2020
@ukclivecox
Copy link
Contributor

Maybe just remove the print statements to make the tests cleaner. The error when the test fails with the name of the test should be enough in production.

@ukclivecox ukclivecox added this to the 1.1 milestone Jan 31, 2020
@RafalSkolasinski
Copy link
Contributor Author

Print statements will be removed via #1424 which will close this issue once merged.

@RafalSkolasinski
Copy link
Contributor Author

Adjusted to replacement with logger.info.

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 a pull request may close this issue.

2 participants