[c10d] Reduce test verbosity (#153116)

Has been seeing a lot of `Starting event listener thread for rank` recently in test print-out. Moving them to `logger.debug`.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/153116
Approved by: https://github.com/fduwjj
This commit is contained in:
Ke Wen 2025-05-08 15:19:26 -07:00 committed by PyTorch MergeBot
parent 5a8c9c3ab0
commit 5dd746b4b5

View File

@ -689,13 +689,13 @@ class MultiProcessTestCase(TestCase):
@staticmethod
def _event_listener(parent_pipe, signal_pipe, rank: int):
logger.info("Starting event listener thread for rank %s", rank)
logger.debug("Starting event listener thread for rank %s", rank)
while True:
ready_pipes = multiprocessing.connection.wait([parent_pipe, signal_pipe])
if parent_pipe in ready_pipes:
if parent_pipe.closed:
logger.info(
logger.debug(
"Pipe closed for process %s, stopping event listener thread",
rank,
)