-
Notifications
You must be signed in to change notification settings - Fork 221
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
mavsdk_server errors not shown to users #585
Comments
Tried that and for some reason it still doesn't log the error messages. I'm running this program to test out the logging:
The output with mavsdk-python on main looks like this: |
Yes it should, I remember it was working for me 🤔. Maybe it got broken somehow. Would you be able to look into it? I'll try to reproduce it when I have time 👍.
Hmm I think I kindly disagree 🙈. I think it's nice to give the choice to users. However we could improve the documentation (e.g. by adding the logging to the examples) to make it more obvious how to do it. |
I was using mavsdk to try communicating with PX4 SITL today and also had mavros running, which made mavsdk_server crash on launch because the udp connection I was trying was already in use. It was hard to debug because when
system.py
runsmavsdk_server
as a subprocess, the stdout is redirected to a logging thread which logs everything at debug level, which is not shown to users (and for new users like me I don't even know how to get it to show me the debug output). From the user's perspective, the call toconnect
just hangs forever. This error also happens if you input a malformed URL likeudp://14540
(which is missing a colon before the port number), it'll just hang forever instead of giving the user a useful error message.The text was updated successfully, but these errors were encountered: