xqms / rosmon

ROS node launcher & monitoring daemon
Other
180 stars 47 forks source link

logwarn, logerr behavior #147

Closed leviathan747 closed 3 years ago

leviathan747 commented 3 years ago

Hi, I'm having a bit of an issue with logging. I'm running a node using Python 3 (need a python3 only module) and using asyncio. I was getting all my "INFO" logs in the monitor, but none of the "WARN" or "ERROR" level logs.

A couple of things I noticed/confirmed during debugging:

Screenshot from 2021-06-28 13-46-49 Screenshot from 2021-06-28 13-47-57

I'm sure there's something different about how rosmon captures the logs, but I wasn't able to find documentation anywhere. Can I get some help? I could make all my logs info, but I'd prefer not to...

xqms commented 3 years ago

Thanks for reporting, that is definitely a bug. I was able to reproduce this on my machine (with Python 3). I'll look deeper into it, I suspect the python nodes are not properly flushing their stderr for some reason, because the messages appear as soon as the node exits.

xqms commented 3 years ago

Should be fixed now in master. Could you please test if both issues are gone now?

leviathan747 commented 3 years ago

It works (ROS Melodic on Ubuntu 18.04). Will this be in a melodic release soon?

xqms commented 3 years ago

Thanks for the feedback. I'll create a new release today.