Skip to content

Commit 9d8a6bb

Browse files
committed
Switch logging to use to_string on errors
1 parent cb9e992 commit 9d8a6bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/middleware/log_request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl Handler for LogRequests {
5353
);
5454

5555
if let Err(ref e) = res {
56-
print!(" error=\"{}\"", e.description());
56+
print!(" error=\"{}\"", e.to_string());
5757
}
5858

5959
if response_time > 1000 {

0 commit comments

Comments
 (0)