Output of entity changes in KIC's logs instead of Println
in database-reconciler repo
#5289
Open
1 of 2 tasks
Labels
area/maintenance
Cleanup, refactoring, and other maintenance improvements that don't change functionality.
priority/low
Milestone
Is there an existing issue for this?
Problem Statement
Currently we enable output of
go-database-reconciler
in setup when log level is set totrace
ordebug
:kubernetes-ingress-controller/internal/manager/setup.go
Lines 48 to 50 in 64a0a61
This uses
cprint
in https://github.com/Kong/go-database-reconciler to output the entity changes, which calls https://github.com/fatih/color for printing message on the terminal in ANSI colors. This output format is suitable for terminal but not for log files. It brings inconsistency in logs, and may print special characters for colors.Proposed Solution
diff.Solve
Additional information
We should also consider updating the code in https://github.com/Kong/go-database-reconciler after separated it from decK. This repo is not mainly used as a CLI as decK, so the direct output to terminal may need to be cleaned.
Acceptance Criteria
The text was updated successfully, but these errors were encountered: