Console logs always contain ANSI colour codes — please honour NO_COLOR / disable when stdout is not a TTY
Description
The console transport in server/logger.ts applies winston.format.colorize() unconditionally, so every line seerr writes to stdout carries ANSI escape codes, even when stdout is not a terminal (the normal case in Docker).
With Docker's journald log driver, systemd-journald stores any message containing control characters as binary data instead of text. Log shippers that read the journal (Splunk's journald input, for one) then skip those lines entirely. In our setup that is almost all of seerr's output: 27 of 31 startup lines in a test. Other log pipelines end up with escape codes in the stored text.
NO_COLOR=1, FORCE_COLOR=0 and TERM=dumb all leave the output coloured (ghcr.io/seerr-team/seerr:latest, 2026-09-23).
Desired Behavior
Apply colorize() only when colour is wanted. Either:
- skip it when
process.stdout.isTTYis false, or - honour the
NO_COLORconvention (https://no-color.org), or - add an env var such as
LOG_COLOR=false.
The first option alone would fix every containerised install.
Additional Context
The file transport is already plain, and we read the log file from a separate mount as a workaround for now.
Investigation and draft done with AI assistance (Claude); reviewed and filed by me.
Search Existing Issues
- Yes, I have searched existing issues.
Code of Conduct
- I agree to follow Seerr's Code of Conduct
Source: seerr-team/seerr