neondatabase / autoscaling

Postgres vertical autoscaling in k8s
Apache License 2.0
153 stars 21 forks source link

vm-builder: don't use ANSI terminal formatting in vector logs #984

Closed chaporgin closed 3 months ago

chaporgin commented 3 months ago

It is not possible for all of the log collectors to correctly strip them out.

vector --help | grep '\-\-color' -A 5
      --color <COLOR>
          Control when ANSI terminal formatting is used.

          By default `vector` will try and detect if `stdout` is a terminal, if it is ANSI will be enabled. Otherwise it will be disabled. By providing this flag with the `--color always` option will always enable
          ANSI terminal formatting. `--color never` will disable all ANSI terminal formatting. `--color auto` will attempt to detect it automatically.

          [env: VECTOR_COLOR=]
          [default: auto]
          [possible values: auto, always, never]