Skip to content

fix(cmd): lowercase pro logout log strings - #1087

Open
devsy-app[bot] wants to merge 1 commit into
mainfrom
cmd-reviewer/pro-logout-lowercase-logs
Open

fix(cmd): lowercase pro logout log strings#1087
devsy-app[bot] wants to merge 1 commit into
mainfrom
cmd-reviewer/pro-logout-lowercase-logs

Conversation

@devsy-app

@devsy-app devsy-app Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

cmd/ subdirectory reviewed

cmd/pro/ — specifically cmd/pro/logout.go.

Issue found

AGENTS.md states that log messages must be lowercase. cmd/pro/logout.go had four log strings that started with an uppercase letter, inconsistent with both the repo convention and the rest of the file (which already uses lowercase log strings throughout cleanupLocalWorkspaces):

  • log.Warnf("Failed to list workspaces: %v", err)
  • log.Warnf("Failed to shut down daemon: %v", err)
  • log.Debug("Waiting for daemon to shut down")
  • log.Warnf("Failed to wait for daemon to be stopped: %v", err)

Minimal change

Lowercased the four offending log strings in cmd/pro/logout.go. No logic, flag, error-handling, or import changes.

Verification performed

  • task cli:format — clean (no formatting changes beyond the intended edits).
  • task cli:lint:ci0 issues.
  • task cli:test — passes, except for two pre-existing failures that also fail on a clean origin/main checkout and are unrelated to this change:
    • pkg/git (TestRepoClone*) — the documented known pre-existing stale-assertion failure.
    • pkg/docker (TestRunCmd_CancelKillsProcessGroup) — a sandbox process-group timing test; confirmed failing on a clean origin/main tree with this change stashed.
  • go build ./cmd/... — clean.
  • go test ./cmd/... — all cmd/ tests pass.

This PR was created by an AI agent as part of an automated daily CLI review job.

## cmd/ subdirectory reviewed

`cmd/pro/` — specifically `cmd/pro/logout.go`.

## Issue found

AGENTS.md states that log messages must be lowercase. `cmd/pro/logout.go` had four log strings that started with an uppercase letter, inconsistent with both the repo convention and the rest of the file (which already uses lowercase log strings throughout `cleanupLocalWorkspaces`):

- `log.Warnf("Failed to list workspaces: %v", err)`
- `log.Warnf("Failed to shut down daemon: %v", err)`
- `log.Debug("Waiting for daemon to shut down")`
- `log.Warnf("Failed to wait for daemon to be stopped: %v", err)`

## Minimal change

Lowercased the four offending log strings in `cmd/pro/logout.go`. No logic, flag, error-handling, or import changes.

## Verification performed

- `task cli:format` — clean (no formatting changes beyond the intended edits).
- `task cli:lint:ci` — **0 issues**.
- `task cli:test` — passes, except for two pre-existing failures that also fail on a clean `origin/main` checkout and are unrelated to this change:
  - `pkg/git` (`TestRepoClone*`) — the documented known pre-existing stale-assertion failure.
  - `pkg/docker` (`TestRunCmd_CancelKillsProcessGroup`) — a sandbox process-group timing test; confirmed failing on a clean `origin/main` tree with this change stashed.
- `go build ./cmd/...` — clean.
- `go test ./cmd/...` — all `cmd/` tests pass.

This PR was created by an AI agent as part of an automated daily CLI review job.
@netlify

netlify Bot commented Aug 17, 2026

Copy link
Copy Markdown

Deploy Preview for devsydev canceled.

Name Link
🔨 Latest commit 0019d8b
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/6a82d89a8586eb0008cba9a5

@netlify

netlify Bot commented Aug 17, 2026

Copy link
Copy Markdown

Deploy Preview for images-devsy-sh canceled.

Name Link
🔨 Latest commit 0019d8b
🔍 Latest deploy log https://app.netlify.com/projects/images-devsy-sh/deploys/6a82d89ab310930008e85d50

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

AI Reviewer: run a review on demand. To trigger the first review automatically, go to your organization or repository integration settings. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants