fix(server): improve logging for deleted file (#235)

This commit is contained in:
Helmut K. C. Tessarek 2024-01-31 15:25:04 -05:00 committed by GitHub
parent 8de2450931
commit 48a3626c7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ async fn delete(
return Err(error::ErrorNotFound("file is not found or expired :(\n"));
}
match fs::remove_file(path) {
Ok(_) => info!("deleted file: {:?}", file),
Ok(_) => info!("deleted file: {:?}", file.to_string()),
Err(e) => {
error!("cannot delete file: {}", e);
return Err(error::ErrorInternalServerError("cannot delete file"));