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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user