File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -44,21 +44,21 @@ impl LogMiddleware {
44
44
method: method,
45
45
path: path,
46
46
status: status as u16 ,
47
- duration: format!( "{}ms " , start. elapsed( ) . as_millis ( ) ) ,
47
+ duration: format!( "{:?} " , start. elapsed( ) ) ,
48
48
} ) ;
49
49
} else if status. is_client_error ( ) {
50
50
log:: warn!( "--> Response sent" , {
51
51
method: method,
52
52
path: path,
53
53
status: status as u16 ,
54
- duration: format!( "{}ms " , start. elapsed( ) . as_millis ( ) ) ,
54
+ duration: format!( "{:?} " , start. elapsed( ) ) ,
55
55
} ) ;
56
56
} else {
57
57
log:: info!( "--> Response sent" , {
58
58
method: method,
59
59
path: path,
60
60
status: status as u16 ,
61
- duration: format!( "{}ms " , start. elapsed( ) . as_millis ( ) ) ,
61
+ duration: format!( "{:?} " , start. elapsed( ) ) ,
62
62
} ) ;
63
63
}
64
64
Ok ( res)
@@ -68,7 +68,7 @@ impl LogMiddleware {
68
68
method: method,
69
69
path: path,
70
70
status: err. status( ) as u16 ,
71
- duration: format!( "{}ms " , start. elapsed( ) . as_millis ( ) ) ,
71
+ duration: format!( "{:?} " , start. elapsed( ) ) ,
72
72
} ) ;
73
73
Err ( err)
74
74
}
You can’t perform that action at this time.
0 commit comments