Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-json logs are prefixed with [90m<nil>[0m #178

Open
cor opened this issue Apr 20, 2024 · 1 comment
Open

Non-json logs are prefixed with [90m<nil>[0m #178

cor opened this issue Apr 20, 2024 · 1 comment

Comments

@cor
Copy link

cor commented Apr 20, 2024

Defect

Non-json logs are prefixed with �[90m<nil>�[0m. Happens with any possible configuration

Make sure that these boxes are checked before submitting your issue -- thank you!

Version of process-compose:

Latest commit on main, built from nix flake

OS environment:

NixOS 23.11

Steps or code to reproduce the issue:

Write any logs with

      "log_configuration": {
        "disable_json": true,
        "no_metadata": true
      },

and specify a path with

  "log_location": "./example.log",

write some logs, then open ./example.log in your editor

Expected result:

No �[90m<nil>�[0m at the start of each line

Actual result:

�[90m<nil>�[0m at the start of each line

@F1bonacc1
Copy link
Owner

Hi @cor,

Did you try adding no_color: true?

log_configuration:
  disable_json: true
  no_color: true # <-- add this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants