[services] Add print when servers have started

Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
pull/3529/head
Daniel Van Der Maden 4 years ago committed by Leo Chen
parent 47f4237fb3
commit 9fd7b27715
  1. 1
      api/service/explorer/service.go
  2. 2
      rpc/rpc.go

@ -126,6 +126,7 @@ func (s *Service) Run() *http.Server {
utils.Logger().Warn().Err(err).Msg("[Explorer] Server error.")
}
}()
fmt.Printf("Started Explorer server at: %v:%v\n", s.IP, port)
return server
}

@ -171,6 +171,7 @@ func startHTTP(apis []rpc.API) (err error) {
Str("cors", strings.Join(httpOrigins, ",")).
Str("vhosts", strings.Join(httpVirtualHosts, ",")).
Msg("HTTP endpoint opened")
fmt.Printf("Started RPC server at: %v\n", httpEndpoint)
return nil
}
@ -183,5 +184,6 @@ func startWS(apis []rpc.API) (err error) {
utils.Logger().Info().
Str("url", fmt.Sprintf("ws://%s", wsListener.Addr())).
Msg("WebSocket endpoint opened")
fmt.Printf("Started WS server at: %v\n", wsEndpoint)
return nil
}

Loading…
Cancel
Save