Skip to content

Commit c35d7f0

Browse files
author
Dylan Huang
authored
Add logging of process ID in evaluation tests (#37)
- Enhanced the `evaluation_test` function to log the process ID using `default_logger`, improving traceability of evaluation processes during testing.
1 parent 3700834 commit c35d7f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

eval_protocol/pytest/evaluation_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ def wrapper_body(**kwargs):
244244
# has to be done in the pytest main process since it's
245245
# used to determine whether this eval has stopped
246246
row.pid = os.getpid()
247+
default_logger.log(row)
247248

248249
# Now run the rollout processor with metadata-initialized data
249250
config = RolloutProcessorConfig(

0 commit comments

Comments
 (0)