Open KPed-at-home opened 3 years ago
I've had similar scenarios and used the following command to help troubleshoot:
.venv/bin/python logger/listener/listen.py --config_f local/usap/cruise.yaml:s330-\>file -v
This allows you to run the individual logger config in a terminal with additional verbosity (the -v flag). I'm sure that command isn't exactly what you need to use but hopefully you get the idea. It needs to be run from the OpenRVDAS install root which is typically /opt/openrvdas.
Be sure the that logger is set to "off" within OpenRVDAS before running this command so that OpenRVDAS releases control of the serial/udp port
Been there done that. Not quite enough. It's easy enough to mess with the python module and add the debugging I need, then just "git checkout" to clean up after my mess, but I'd like to assume that I'm not the only one having similar issues. Or maybe it is just me. But obviously this type of issue was ubiquitous enough for the creation of the check_parse_format command, so.....
So yeah - maybe something like a CheckParseFormatTransform that can drink directly from the firehose (so you don't have to worry about chars getting lost on the way), and outputs diagnostics on what matches, and how much?
On Mon, Aug 2, 2021 at 1:11 PM KPed-at-home @.***> wrote:
Been there done that. Not quite enough. It's easy enough to mess with the python module and add the debugging I need, then just "git checkout" to clean up after my mess, but I'd like to assume that I'm not the only one having similar issues. Or maybe it is just me. But obviously this type of issue was ubiquitous enough for the creation of the check_parse_format command, so.....
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/OceanDataTools/openrvdas/issues/278#issuecomment-891191050, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFO7V3QRWY6VDABIZZ6B7MTT23GU7ANCNFSM5BM4JGOQ .
Is your feature request related to a problem? Please describe. I have one parser definition (for the Seapath 330) where the last definition is "{unparseable:os}", and yet OpenRVDAS tells me no pattern matches the data string.
Describe the solution you'd like I'd like a utility or flag the turns on ridiculous levels of debug for the parser, where it tells me what pattern it's using, shows me something like what "check_parse_format.py" for each of them. Seems like with a pattern that's basically a regex dot-star, I'd match ANYTHING, but I'm not matching, so... maybe there's a problem in my YAML and it's not seeing that pattern (this would tell me), or maybe I've uncovered a bug, or maybe it just doesn't like me....
Describe alternatives you've considered Voodoo and tweaking the code myself are the two options I've considered (it's easy enough to futz around and then just git checkout the file you messed with)
Additional context Currently it's quieted, but see LMG's /var/log/openrvdas/lsep.stderr