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

Make timestamps in operator logs human-readable #250

Open
johananl opened this issue Aug 27, 2019 · 1 comment
Open

Make timestamps in operator logs human-readable #250

johananl opened this issue Aug 27, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@johananl
Copy link
Contributor

At the moment the operator produces log messages in the following format:

{"level":"info","ts":1566906621.2220764,"logger":"controller_cassandradatacenter","msg":"CassandraDataCenter reconciliation complete.","Request.Namespace":"default","Request.Name":"cassandra-sample-dc"}

It might be nicer to have human-readable timestamps.

@smiklosovic smiklosovic added the enhancement New feature or request label Aug 28, 2019
@smiklosovic
Copy link
Collaborator

I was briefly looking into this and I am not sure we can tweak that easily.

We would have to do more or less this:

uber-go/zap#485 (comment)

bypassing how k8s is doing that in sigs.k8s.io/controller-runtime/pkg/runtime/log package in func ZapLoggerTo(destWriter io.Writer, development bool) logr.Logger function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants