Skip to content

[TASK] Refactor log messages to start lowercase #600

Closed

Description

@edenreich

Summary

Structured log messages are inconsistently cased across the codebase. Many start with an uppercase
letter (e.g. logger.Info("Starting channels-manager"), logger.Error("Failed to stop scheduler"))
while newer ones are already lowercase (e.g. logger.Debug("directexec: stdout scanner error")). A
quick scan finds roughly 600 capitalized-first logger.{Info,Warn,Error,Debug,Fatal}(...) calls
across ~74 files.

Standardize all structured log message strings to start with a lowercase letter (mirroring Go's
convention for error strings), so logs read consistently and are easier to grep and aggregate.

In scope: the log message (first string argument to logger.*).

Out of scope: structured key/value fields, and user-facing CLI/TUI output (fmt.Print*), which
should keep their normal sentence casing. Proper nouns, acronyms, and identifiers that legitimately
lead a message (e.g. MCP, A2A, SQLite, env-var names, file paths) stay as-is.

Acceptance Criteria

  • All logger.{Trace,Debug,Info,Warn,Error,Fatal} message strings start with a lowercase letter, except where the first token is a proper noun / acronym / identifier.
  • User-facing CLI output (fmt.Println/fmt.Printf, TUI text) is left unchanged.
  • A short convention note is added (CONTRIBUTING / AGENTS.md) so new log messages stay lowercase-first.
  • task lint and task test pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactor

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions