From c4572b77279b2462f44d2cbb5557e5ba733a0ddc Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Sun, 12 Feb 2017 18:13:57 +0100 Subject: [PATCH] add println logging --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index 52f4142..3a809fc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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),