Closed mitch-galea closed 7 months ago
Just to make sure: You care about the justification in journald, right? The code snippet in your screenshot is about stdout.
Maybe we should switch off the alignment in the syslog/journald output altogether? Not sure if anyone cares about that there.
Ah, now I understand: You are running rosmon from systemd and so the stdout goes to journald. Hm, yes, I guess we would need an option for that.
An alternative for you would be to switch off stdout forwarding in systemd service:
[Service]
...
StandardOutput=null
(reference: https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#StandardOutput=)
Instead, you would enable rosmon's own logging system by specifying the --log=syslog
parameter. That system does not justify/align anything :)
Hello,
Some of the node names in our launch file are very long, with the right justification of ros node names and paired with journalctl logs means that the output can look pretty ugly, especially for the nodes with short names.
We have noticed the issue when updating from 2.3.2 -> 2.5.1. Below is what we think is the cause:![image](https://github.com/xqms/rosmon/assets/69497623/eba17ae3-754b-4b6e-8349-936d71be3974)
Could an option be added to disable right justification / alignment of log output or set a max_length value manually rather than computing it based on the longest node