Bug in can.logger
during rollover when file format .blf
is defined
#1316
Labels
can.logger
during rollover when file format .blf
is defined
#1316
Describe the bug
The
can.logger
file is throwing an error when the.blf
format is requested and a max file size is defined.To Reproduce
Enable virtual can:
sudo ip link add dev vcan0 type vcan && sudo ip link set up vcan0
Spam the virtual bus with random can messages 1 ms apart:
cangen vcan0 -e -I 18EAFF26 -L i -v -v -v -g 1
Log the virtual bus:
python -m can.logger -c vcan0 -i socketcan -b 250000 -f file.blf -s 50
Expected behavior
The
can.logger
should run without error until there is akeyboard interrupt
. When thefile.blf
reaches 50 bytes then the file should be rolled over.Additional context
OS and version: Ubuntu 20.04.4 LTS
Python version: Python 3.7.17
python-can version: 4.0.0
python-can interface/s (if applicable):
Traceback and logs
The text was updated successfully, but these errors were encountered: