Closed idank closed 3 years ago
Also it looks like the script configures a configure_log
Logger but doesn't use it. Is that intentional?
Logging is an aspect of the system that definitely needs improvement.
I introduced centralized logging for the netperf related processes so that all messages will be written to the netperf log file (e.g. /usb_storage/netperf/log/netperf.log), this will reduce the amount of writes performed on the SD card. It's also useful to have all netperf related log messages in one place, separate from other system log messages.
I have not yet completely updated all the processes to thoroughly utilize this centralized logging.
Would you be interested in tackling this?
Chris
Sure, leave me some high level instructions and I'll give it a go.
Also just for my curiosity, do you know why the stdout of the process isn't visible to journalctl?
I have updated the configure-interfaces.py
script to improve logging, messages are now written to netperf.log
(location of this file varies depending on the application data path specified during system installation - typically /mnt/usb_storage/netperf/log/netperf.log
on Raspberry Pi installations).
The level of detail included in the log messages can be controlled via the log_level
setting in /opt/netperf/config/netperf.json
. For a high level of detail during interface configuration, set log_level
to DEBUG
.
It appears the
netperf-interfaces
service doesn't emit its stdout to journalctl:When I manually run
sudo /usr/bin/python3 /opt/netperf/configure_interfaces.py
, I get the full output.I tried looking around the docs a bit but couldn't figure out why it's not including the print calls from configure_interfaces.py.