Fixed wrong filename of logfile in Voxygen's panic message.

Moved the '<date>' component of the logfile name to the
end of the filename string, as RollingFileAppender::new()
appends the date to the provided file name prefix.

Please see
https://docs.rs/tracing-appender/0.1.2/tracing_appender/rolling/struct.RollingFileAppender.html#method.new
This commit is contained in:
schnippl0r 2021-07-21 03:33:13 +02:00
parent 6bc5f6a170
commit d1a1e29cd6

View File

@ -114,7 +114,7 @@ fn main() {
PanicInfo: {}\n\
Game version: {} [{}]",
logs_dir
.join("voxygen-<date>.log")
.join("voxygen.log.<date>")
.display(),
reason,
panic_info,