mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
node: always show websocket url in logs (#22307)
This commit is contained in:
parent
9326a45910
commit
f9abed27dc
@ -144,13 +144,15 @@ func (h *httpServer) start() error {
|
||||
h.listener = listener
|
||||
go h.server.Serve(listener) // nolint:errcheck
|
||||
|
||||
// if server is websocket only, return after logging
|
||||
if h.wsAllowed() && !h.rpcAllowed() {
|
||||
if h.wsAllowed() {
|
||||
url := fmt.Sprintf("ws://%v", listener.Addr())
|
||||
if h.wsConfig.prefix != "" {
|
||||
url += h.wsConfig.prefix
|
||||
}
|
||||
h.log.Info("WebSocket enabled", "url", url)
|
||||
}
|
||||
// if server is websocket only, return after logging
|
||||
if !h.rpcAllowed() {
|
||||
return nil
|
||||
}
|
||||
// Log http endpoint.
|
||||
|
Loading…
Reference in New Issue
Block a user