diff --git a/Cargo.lock b/Cargo.lock index a556883..3ad7d75 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1228,7 +1228,7 @@ dependencies = [ [[package]] name = "discoursio-quoter" -version = "0.0.6" +version = "0.0.7" dependencies = [ "actix-multipart", "actix-web", diff --git a/Cargo.toml b/Cargo.toml index 5c129e1..399b63f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "discoursio-quoter" -version = "0.0.6" +version = "0.0.7" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/app_state.rs b/src/app_state.rs index e147e90..a053ce8 100644 --- a/src/app_state.rs +++ b/src/app_state.rs @@ -99,8 +99,10 @@ impl AppState { let _: () = redis .hset(PATH_MAPPING_KEY, filekey, filepath) .await - .expect("Failed to cache file in Redis"); + .expect(&format!("Failed to cache file {} in Redis", filekey)); } + + info!("cached {} files", filekeyed_list.len()); } /// Получает кэшированный список файлов из Redis.