add println logging

This commit is contained in:
Sebastian Hugentobler 2017-02-12 18:13:57 +01:00
parent 22675de4a9
commit c4572b7727

View File

@ -51,9 +51,13 @@ fn random() -> Template {
Err(_) => panic!(""),
};
println!("getting tune information...");
let file_name = chosen_one.file_name().unwrap().to_str().unwrap();
let file_title = chosen_one.file_stem().unwrap().to_str().unwrap();
println!("building context...");
let context = RandomContext {
title: String::from(format!("{}", file_title)),
music_file: String::from(file_name),