Skip to content

NO_COLOR=1 not working when redirecting shell output to log file. #462

@ghost

Description

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Using the following command:

recyclarr sync >> /Users/myusername/Downloads/Recylcarr.log 2>&1

The log file still contains ANSI color, even with the NO_COLOR environment variable set (NO_COLOR=1).

The screen output does have the ANSI removed as expected.

Expected Behavior

The log file should not contain any ANSI color codes.

Steps To Reproduce

See code above.

Environment & Versions

- Operating System: MacOS
- Architecture: M4
- Recyclarr Version: v7.4.1
- Recyclarr Build:
- Sonarr Version: N/A
- Radarr Version: N/A

Recyclarr Log File(s)

Recylcarr.log

Configuration YAML

N/A

Sonarr / Radarr Logs

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