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 statements with python standard library logging #924

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

Conversation

ThomasDavid0
Copy link

This is so the std output can be controlled by code that depends on pymavlink.

@MauroPfister
Copy link

I'd love to see this changed at some point. Thanks for taking the initiative @ThomasDavid0!

One small remark: AFAIK the recommended way to write log messages is logger.info("timeout setting %s to %f", name, numeric_value) instead of logger.info("timeout setting %s to %f" % (name, numeric_value)).

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.

3 participants