func handleListener(manager *connmgr.ConnManager, listener net.Listener, artemisServerAddr string) { log.Printf("Proxy server started on %v", listener.Addr()) err := connmgr.ServeReverseProxy(manager, listener, artemisServerAddr) // TODO: Use cfg.LogNewConnections. log.Printf("Proxy server stopped on %v with error: %v", listener.Addr(), err) }
func (srv *Service) handleListener(manager *connmgr.ConnManager, listener net.Listener, artemisServerAddr string) { srv.log.Printf("Started on %v", listener.Addr()) err := connmgr.ServeReverseProxy(manager, listener, artemisServerAddr) srv.log.Printf("Stopped on %v with error: %v", listener.Addr(), err) }