fix: error logs are less hardcoded now

This commit is contained in:
Nickiel12 2023-01-06 22:24:49 -08:00
parent 3de79b08f1
commit 2b8d8e8dfd

View file

@ -293,7 +293,7 @@ pub fn init_logger(output_file: String) {
WriteLogger::new( WriteLogger::new(
LevelFilter::Info, LevelFilter::Info,
Config::default(), Config::default(),
File::create("my_rust_binary.log").unwrap(), File::create(output_file).unwrap(),
), ),
]) ])
.unwrap(); .unwrap();