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 {
4444 method: method,
4545 path: path,
4646 status: status as u16 ,
47- duration: format!( "{}ms " , start. elapsed( ) . as_millis ( ) ) ,
47+ duration: format!( "{:?} " , start. elapsed( ) ) ,
4848 } ) ;
4949 } else if status. is_client_error ( ) {
5050 log:: warn!( "--> Response sent" , {
5151 method: method,
5252 path: path,
5353 status: status as u16 ,
54- duration: format!( "{}ms " , start. elapsed( ) . as_millis ( ) ) ,
54+ duration: format!( "{:?} " , start. elapsed( ) ) ,
5555 } ) ;
5656 } else {
5757 log:: info!( "--> Response sent" , {
5858 method: method,
5959 path: path,
6060 status: status as u16 ,
61- duration: format!( "{}ms " , start. elapsed( ) . as_millis ( ) ) ,
61+ duration: format!( "{:?} " , start. elapsed( ) ) ,
6262 } ) ;
6363 }
6464 Ok ( res)
@@ -68,7 +68,7 @@ impl LogMiddleware {
6868 method: method,
6969 path: path,
7070 status: err. status( ) as u16 ,
71- duration: format!( "{}ms " , start. elapsed( ) . as_millis ( ) ) ,
71+ duration: format!( "{:?} " , start. elapsed( ) ) ,
7272 } ) ;
7373 Err ( err)
7474 }
You can’t perform that action at this time.
0 commit comments