From 7ed6a063f487e0865fbd589d78bb7976ecdd905a Mon Sep 17 00:00:00 2001 From: hjiang Date: Fri, 13 Dec 2024 22:01:53 +0000 Subject: [PATCH] add logging Signed-off-by: hjiang --- python/ray/tests/test_logging.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/ray/tests/test_logging.py b/python/ray/tests/test_logging.py index d27d179ccea4..64efe7554f8a 100644 --- a/python/ray/tests/test_logging.py +++ b/python/ray/tests/test_logging.py @@ -335,6 +335,10 @@ def f(): worker_id = re.match(pattern, str(path)).group(1) worker_log_files.append(str(paths)) ids.append(worker_id) + + logger = logging.getLogger(__name__) + logger.warning(worker_log_files) + counts = Counter(ids).values() for count in counts: # There should be a "python-core-.*.log", "worker-.*.out",