morse-simulator / morse

The Modular OpenRobots Simulation Engine
http://morse-simulator.github.io/
Other
353 stars 156 forks source link

Stopped pymorse stream class from swallowing error messages #709

Closed amiller27 closed 8 years ago

amiller27 commented 8 years ago

Previously, when an error occurred in one of the asynchronous socket handlers represented in pymorse's Stream class, the socket was closed without printing or logging any error message, making errors in callbacks given to socket handlers impossible to debug. Now the error is sent to the logger before the socket is closed.

adegroote commented 8 years ago

Merged after slight rework of the commit message. Thanks for the PR.