From 8db4706786893a986f874a98a0386b74ccea2870 Mon Sep 17 00:00:00 2001 From: SadlyNotSappho Date: Fri, 5 May 2023 16:48:13 -0700 Subject: [PATCH] add very basic logging --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 2280852..868d192 100644 --- a/src/main.rs +++ b/src/main.rs @@ -37,9 +37,11 @@ async fn main() -> tide::Result<()> { "{}/{}/{}/index.html", webdirs, root_name, index_paths ))?; + println!("registered /") } for d in subdirs { + println!("registered /{d}"); app.at(d.as_str()) .serve_file(format!("{}/{}/{}/index.html", webdirs, d, index_paths))?; } @@ -48,9 +50,7 @@ async fn main() -> tide::Result<()> { } fn get_env(option: &str) -> Option { - /* - * Get the env var from .env, but if it isn't there, or if the file doesn't exist, get it from the actual env vars - */ + // Get the env var from .env, but if it isn't there, or if the file doesn't exist, get it from the actual env vars let text_some = std::fs::read_to_string("./.env").ok(); if let Some(text) = text_some { for line in text.trim().lines().collect::>() {