[tooling] Make start_port_server less spammy when starting for the first time (#37628)

This has freaked more than one new team member out historically

Closes #37628

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37628 from ctiller:cgf ded4d14b12
PiperOrigin-RevId: 677866795
pull/37790/head
Craig Tiller 2 months ago committed by Copybara-Service
parent c7cc8c1eac
commit cdbc99d811
  1. 5
      tools/run_tests/python_utils/start_port_server.py

@ -31,7 +31,7 @@ import jobset
_PORT_SERVER_PORT = 32766 _PORT_SERVER_PORT = 32766
def start_port_server(): def start_port_server(verbose=False):
# check if a compatible port server is running # check if a compatible port server is running
# if incompatible (version mismatch) ==> start a new one # if incompatible (version mismatch) ==> start a new one
# if not running ==> start a new one # if not running ==> start a new one
@ -45,7 +45,8 @@ def start_port_server():
logging.info("detected port server running version %d", version) logging.info("detected port server running version %d", version)
running = True running = True
except Exception as e: except Exception as e:
logging.exception("failed to detect port server") if verbose:
logging.exception("failed to detect port server")
running = False running = False
if running: if running:
current_version = int( current_version = int(

Loading…
Cancel
Save