Skip to content

Commit

Permalink
fix(server): improve logging for deleted file (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
tessus authored Jan 31, 2024
1 parent 8de2450 commit 48a3626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit 48a3626

Please sign in to comment.