Skip to content

Color Support in Logs broken with 2.0 #5990

@cdobinsky

Description

@cdobinsky

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug

After Updating to Version 2.0 colored logs are not supported anymore and they're shown in clear text as shown in the Screenshots.
The new Log Viewer is really nice though and would be awesome if it supports colors again.

To Reproduce

Start up an application which has colored logs (in our case artifactory)
Check the Log Viewer of a pod.

Expected behavior

Show colors in logs like in prior versions

Screenshots

With colors
colored_logs

Without colors in 2.0
after

Version

argocd: v2.0.0+f5119c0
  BuildDate: 2021-04-07T06:00:33Z
  GitCommit: f5119c06686399134b3f296d44445bcdbc778d42
  GitTreeState: clean
  GoVersion: go1.16
  Compiler: gc
  Platform: linux/amd64
argocd-server: v2.0.0+f5119c0
  BuildDate: 2021-04-07T06:00:33Z
  GitCommit: f5119c06686399134b3f296d44445bcdbc778d42
  GitTreeState: clean
  GoVersion: go1.16
  Compiler: gc
  Platform: linux/amd64
  Ksonnet Version: v0.13.1
  Kustomize Version: v3.9.4 2021-02-09T19:22:10Z
  Helm Version: v3.5.1+g32c2223
  Kubectl Version: v0.20.4
  Jsonnet Version: v0.17.0

Logs

2021-04-08T07:39:45.915Z �[1;32m[jfrt ]�[0;39m �[34m[INFO ]�[0;39m [686868f064a4a639] [a.e.EventsLogCleanUpService:81] [art-exec-4          ] - Cleanup of old events from event log finished

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions