emabee / flexi_logger

A flexible logger for rust programs that can write to stderr, stdout, and/or to log files
Apache License 2.0
307 stars 50 forks source link

The program will panic when FileSpec.o_suffix is none. #116

Closed gamife closed 2 years ago

gamife commented 2 years ago

version: 0.23 When the log file is empty, the file_stem does not contain .restart-. So the unwrap() is not ok. https://github.com/emabee/flexi_logger/blob/0fca68d9b9d71431d6ca9da09bc0d368b0740cc7/src/writers/file_log_writer/state.rs#L678