Open hrivera-ntap opened 3 months ago
Was the closing of this PR due to something in particular?
Was the closing of this PR due to something in particular?
I felt my solution was too simplistic since perhaps the bug has ventured into "it's a feature now" territory.
Actual behavior When passing in
--log-timestamp=false
with either--log-format=text|color
set, timestamps still get logged.Expected behavior No timestamps should get logged
To Reproduce Steps to reproduce the behavior:
--log-timestamp=false
and--log-format=text
and notice timestamps still get logged.Additional Information
Kaniko Image v1.23.1
Triage Notes for the Maintainers
The culprit appears to be here: https://github.com/GoogleContainerTools/kaniko/blob/6bea4df3afb81106f31ebae979c26b64b5e800fb/pkg/logging/logging.go#L50-L59
This code should be utilizing the
DisableTimestamp
field instead of theFullTimestamp
field in the logrus text formatter. See below: https://github.com/sirupsen/logrus/blob/dd1b4c2e81afc5c255f216a722b012ed26be57df/text_formatter.go#L48-L50--cache
flag