fix missing log file extension

This commit is contained in:
LastExceed 2024-02-13 13:47:22 +01:00
parent 938dffc63d
commit 885548177b

View File

@ -33,7 +33,7 @@ pub fn machinelog(machine: &str, booking: &Booking) -> io::Result<()> {
File::options() File::options()
.append(true) .append(true)
.open("/root/machinelog")? .open("/root/machinelog.csv")?
.pipe(csv::Writer::from_writer) .pipe(csv::Writer::from_writer)
.serialize(record) .serialize(record)
.map_err(|_| io::ErrorKind::Other.into()) .map_err(|_| io::ErrorKind::Other.into())