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

Encode log timestamps as RFC3339 #261

Merged
merged 1 commit into from Mar 2, 2023

Conversation

gkurz
Copy link
Member

@gkurz gkurz commented Feb 9, 2023

Timestamps are currently displayed as number of seconds since the Epoch using scientific notation, i.e. 1.6759526089944808e+09.

This is definitely not human friendly. Newer versions of the zap package now render timestamps according to RFC3339, i.e. 2023-02-09T14:38:20Z.

We're not ready to bump the controller-runtime package that brings us zap. Let's configure zap to explicitly use RFC3339.

Signed-off-by: Greg Kurz groug@kaod.org

- Description of the problem which is fixed/What is the use case

- What I did

- How to verify it

- Description for the changelog

Timestamps are currently displayed as number of seconds since the Epoch
using scientific notation, i.e. 1.6759526089944808e+09.

This is definitely not human friendly. Newer versions of the zap package
now render timestamps according to RFC3339, i.e. 2023-02-09T14:38:20Z.

We're not ready to bump the controller-runtime package that brings us
zap. Let's configure zap to explicitly use RFC3339.

Signed-off-by: Greg Kurz <groug@kaod.org>
@openshift-ci
Copy link

openshift-ci bot commented Feb 9, 2023

@gkurz: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/sandboxed-containers-operator-e2e 8d93114 link false /test sandboxed-containers-operator-e2e

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Copy link
Contributor

@cpmeadors cpmeadors left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@bpradipt bpradipt merged commit adf1e6b into openshift:main Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants