fix(tooling): body_definition_parser no longer configures logging on import

A module-level logging.basicConfig(level=INFO) ran whenever any reach verb
imported the parser. That configured root logging process-wide and wrote plain
text to stderr, breaking reach's contract that stderr carries only JSONL events
and one verdict. A dry run of bake-biome emitted 205 KB this way, most of it a
line per body of every parsed system.

Its eight log calls now go through console.event. Per-body and per-system lines
become debug, visible only with verbose output. The four warnings stay warn, as
structured events: 66 of them across the bake scope, each an authored orbit
that contradicts the body's planet class ("too hot for temperate").
Those are real data findings and stay visible. A dry run is now two lines
plus those warnings.

Also: tooling/core/command.py carried the same two-line comment twice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-25 15:55:53 +02:00
co-authored by Claude Opus 5.5
parent 76e3f3ec96
commit 1857c6405e
2 changed files with 15 additions and 18 deletions
-2
View File
@@ -57,8 +57,6 @@ def command(func: F) -> F:
@functools.wraps(func)
def wrapped(*args: Any, **kwargs: Any) -> Any:
# A detached child adopts the id its parent already reported; a
# foreground run mints a fresh one.
# A detached child adopts the id its parent already reported; a
# foreground run mints a fresh one.
token = jobs.begin(os.environ.get(jobs.ENV_JOB_ID))