File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -99,8 +99,6 @@ async fn main() {
9999 . with_max_level ( tracing:: Level :: INFO )
100100 . init ( ) ;
101101
102- tracing:: info!( "Started listening on http://localhost:3000" ) ;
103-
104102 Ohkami :: new ( (
105103 fangs:: LogRequest ,
106104 "/hc" . GET ( health_handler:: health_check) ,
Original file line number Diff line number Diff line change @@ -594,8 +594,9 @@ impl Ohkami {
594594 let router = Arc :: new ( router) ;
595595
596596 let listener = bind. ino_tcp_listener ( ) . await ;
597-
598597 let ( wg, ctrl_c) = ( sync:: WaitGroup :: new ( ) , sync:: CtrlC :: new ( ) ) ;
598+
599+ crate :: INFO !( "start serving on {}" , listener. local_addr( ) . unwrap( ) ) ;
599600
600601 while let Some ( accept) = ctrl_c. until_interrupt ( listener. accept ( ) ) . await {
601602 let ( connection, addr) = {
@@ -710,6 +711,8 @@ impl Ohkami {
710711 let listener = bind. ino_tcp_listener ( ) . await ;
711712 let ( wg, ctrl_c) = ( sync:: WaitGroup :: new ( ) , sync:: CtrlC :: new ( ) ) ;
712713
714+ crate :: INFO !( "start serving on {}" , listener. local_addr( ) . unwrap( ) ) ;
715+
713716 while let Some ( accept) = ctrl_c. until_interrupt ( listener. accept ( ) ) . await {
714717 let Ok ( ( tcp_stream, addr) ) = accept else { continue } ;
715718
You can’t perform that action at this time.
0 commit comments