Skip to content

Commit 93b90fd

Browse files
refactor(init): remove org logging from wizard runner and local-ops
Drop logExplicitTarget() from wizard-runner.ts and the log.info() call after org resolution in local-ops.ts. This keeps the PR focused on the arg parsing changes.
1 parent b1fbb58 commit 93b90fd

2 files changed

Lines changed: 1 addition & 14 deletions

File tree

src/lib/init/local-ops.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import { spawn } from "node:child_process";
99
import fs from "node:fs";
1010
import path from "node:path";
11-
import { isCancel, log, select } from "@clack/prompts";
11+
import { isCancel, select } from "@clack/prompts";
1212
import {
1313
createProject,
1414
listOrganizations,
@@ -742,8 +742,6 @@ async function createSentryProject(
742742
return orgResult;
743743
}
744744
orgSlug = orgResult;
745-
// Show which org was resolved (explicit org is shown at startup by wizard-runner)
746-
log.info(`Organization: ${orgSlug}`);
747745
}
748746

749747
// 2. Resolve or create team

src/lib/init/wizard-runner.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,6 @@ function errorMessage(err: unknown): string {
122122
return err instanceof Error ? err.message : String(err);
123123
}
124124

125-
/** Log the explicitly provided org (and project) target before the wizard starts. */
126-
function logExplicitTarget(options: WizardOptions): void {
127-
if (!options.org) {
128-
return;
129-
}
130-
const projectHint = options.project ? ` (project: ${options.project})` : "";
131-
log.info(`Organization: ${options.org}${projectHint}`);
132-
}
133-
134125
function assertWorkflowResult(raw: unknown): WorkflowRunResult {
135126
if (!raw || typeof raw !== "object") {
136127
throw new Error("Invalid workflow response: expected object");
@@ -264,8 +255,6 @@ export async function runWizard(options: WizardOptions): Promise<void> {
264255
`\nFor manual setup: ${terminalLink(SENTRY_DOCS_URL)}`
265256
);
266257

267-
logExplicitTarget(options);
268-
269258
const tracingOptions = {
270259
traceId: randomBytes(16).toString("hex"),
271260
tags: ["sentry-cli", "init-wizard"],

0 commit comments

Comments
 (0)