Skip to content

[BUG] [v0.0.7] cortex compact run emits internal INFO log with ANSI codes to stdout, contaminating machine-parseable output #53313

@codvy8282

Description

@codvy8282

Project

cortex

Description

Running compact run prints an internal tracing INFO line directly to stdout alongside the user-facing message. This makes piped output unreliable.

Error Message

Debug Logs

System Information

windows 11

Screenshots

https://github.com/codvy8282/images/blob/main/20.png

Steps to Reproduce

$ cortex compact run 1>/tmp/stdout.txt 2>/tmp/stderr.txt
$ cat /tmp/stdout.txt

Expected Behavior

Only user-facing messages on stdout. Internal logs should go to stderr.

Actual Behavior

Running compaction cycle...
2026-04-10T05:33:27Z INFO cortex_compact::auto_compaction::scheduler: Auto-compaction cycle completed duration_ms=0

Compaction completed in 0ms
The INFO line appears on stdout, not stderr.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions