← 返回事件
持续讨论AI发版

viable/strict/1789540965: Update handler clearance logic (#196102)

发生了什么

The tests, when run in shards, use pytest. So, pytest test_logging.py is used instead of python test_logging.py . The initial code, which was: for log_qname in log_internal . log_registry . get_log_qnames (): logger = logging . getLogger ( log_qname ) created_handlers . update ( logger . handlers ) self . assertEqual ( len ( logger . handlers ), 2 , f" { log_qname } should only have stream and file handlers" , ) che…

摘要按规则整理自下方来源原文

为什么在扩散

来源