tau2: silence loguru BEFORE the first tau2 import

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
sora 2026-09-17 09:14:57 +00:00
parent e015b5035f
commit 30af23212e

View File

@ -43,6 +43,10 @@ def _silence_tau2_logs():
def _ensure_tau2_engine():
# SILENCE FIRST: tau2's modules emit loguru INFO at import time
# ('Registering default components...', data-dir banner); any tau2
# import below triggers them before later silencing can help
_silence_tau2_logs()
"""Auto-install the REAL tau2-bench engine when missing.
PyPI's 'tau2' is an unrelated physics package -- never 'pip install