stapix

Yet another static page generator for photo galleries

Commit
573b95c08c9622ad8e22327f4a47a431d38e1d03
Parent
f8e5c2a354cda24263384337fa60a2fee1806c92
Author
Pablo <pablo-escobar@riseup.net>
Date

Added a log message

Added a log message at the beggining of execution telling the user about which version of the program they are running

Diffstat

1 file changed, 3 insertions, 0 deletions

Status File Name N° Changes Insertions Deletions
Modified src/main.rs 3 3 0
diff --git a/src/main.rs b/src/main.rs
@@ -158,6 +158,9 @@ fn main() -> ExitCode {
 
 /// Coordinates the rendering of all the pages and file conversions
 fn render_gallery(pics: Vec<Picture>) -> ExitCode {
+    logln!("Running {package} version {version}",
+           package = env!("CARGO_PKG_NAME"),
+           version = env!("CARGO_PKG_VERSION"));
     log!("Copying image files to the target directory...");
 
     for pic in &pics {