Skip to content

Human-readable output is interleaved with raw JSON log lines and Go log timestamps (launch, status) #895

Closed

Description

@scttfrdmn

Version: spawn 0.128.2 (38b2d66), macOS arm64, us-west-2

The polished progress/summary output has machine log lines mixed into it. In a terminal, and especially in recorded demos, it looks broken.

spawn launch demo --instance-type m8a.4xlarge --spot --ttl 1h -y:

  ? Launching instance...
{"timestamp":"2026-10-15T16:59:57.926149Z","level":"info","operation":"launch_instance","user_id":"942542972736","instance_id":"single","correlation_id":"5ebc…","result":"initiated",…}
2026/10/15 09:59:58 pricing: m8a.4xlarge in us-west-2 = $0.9738/hr (truffle, live AWS Price List)
{"timestamp":"2026-10-15T17:00:00.545154Z","level":"info","operation":"launch_instance",…,"result":"success",…}
  ✅ Launching instance (2.6s)

The same thing happens in job-array and --mpi launches (3 JSON lines each, plus the pricing: line).

spawn status demo (and spored status on the instance):

Looking up instance demo...
2026/10/15 17:00:45 Not idle: CPU usage could not be measured (no sample interval yet); assuming active (100.00%)
  demo  (i-028c23f816d2eb68e)

Note that the JSON audit lines include the AWS account ID (user_id), which then ends up in screenshots and recordings.

Suggested: send structured/audit logs to a file, or to stderr behind --verbose/SPAWN_LOG=json, and keep stdout to the human output. Related: #540 (the same class of leak in status -o json).

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions