Browse Source

[rpc/lib] log cert and key files in StartHTTPAndTLSServer

pull/1409/head
Anton Kaliaev 7 years ago
parent
commit
491c8ab4c1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      rpc/lib/server/http_server.go

+ 2
- 2
rpc/lib/server/http_server.go View File

@ -25,7 +25,7 @@ func StartHTTPServer(listenAddr string, handler http.Handler, logger log.Logger)
} }
proto, addr = parts[0], parts[1] proto, addr = parts[0], parts[1]
logger.Info(fmt.Sprintf("Starting RPC HTTP server on %s socket %v", proto, addr))
logger.Info(fmt.Sprintf("Starting RPC HTTP server on %s", listenAddr))
listener, err = net.Listen(proto, addr) listener, err = net.Listen(proto, addr)
if err != nil { if err != nil {
return nil, errors.Errorf("Failed to listen on %v: %v", listenAddr, err) return nil, errors.Errorf("Failed to listen on %v: %v", listenAddr, err)
@ -49,7 +49,7 @@ func StartHTTPAndTLSServer(listenAddr string, handler http.Handler, certFile, ke
} }
proto, addr = parts[0], parts[1] proto, addr = parts[0], parts[1]
logger.Info(fmt.Sprintf("Starting RPC HTTPS server on %s socket %v", proto, addr))
logger.Info(fmt.Sprintf("Starting RPC HTTPS server on %s (cert: %q, key: %q)", listenAddr, certFile, keyFile))
listener, err = net.Listen(proto, addr) listener, err = net.Listen(proto, addr)
if err != nil { if err != nil {
return nil, errors.Errorf("Failed to listen on %v: %v", listenAddr, err) return nil, errors.Errorf("Failed to listen on %v: %v", listenAddr, err)


Loading…
Cancel
Save