chore: remove acceptance debug channels from the P2 operator path

This commit is contained in:
2026-08-11 20:04:04 +02:00
parent 7aaffe6e68
commit de5de36f9a
4 changed files with 3 additions and 29 deletions
@@ -430,13 +430,7 @@ export class WorkspacePreprocessingService {
private async runJsonStage(runtime: ActiveRuntime, argv: string[]): Promise<Record<string, unknown>> {
const result = await this.deps.runChild({ argv, configPath: runtime.configLease.path });
if (result.exitCode !== 0) {
if (process.env.P2_CHILD_DEBUG === "1") {
const detail = `${result.stderr ?? ""}${result.stdout ?? ""}`.replace(/[\r\n]+/g, " ").slice(0, 2048);
throw new Error(`workspace child failed: ${detail}`);
}
throw new Error("workspace child failed");
}
if (result.exitCode !== 0) throw new Error("workspace child failed");
return JSON.parse(result.stdout) as Record<string, unknown>;
}