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

Human-readable timestamp #2031

Open
4 tasks
masa213f opened this issue Jul 13, 2022 · 0 comments
Open
4 tasks

Human-readable timestamp #2031

masa213f opened this issue Jul 13, 2022 · 0 comments

Comments

@masa213f
Copy link
Contributor

What

Some k8s operators developed by Neco outputs the unix time stamp.
It hard to read for us. Let's use Human-readable timestamp format.

{"level":"info","ts":1657611644.746192,"logger":"runner","msg":"Runner listener exit with retryable error, re-launch runner in 10 seconds.","pod":"neco-apps-runner-6b95fc5688-8x95n"}

How

Set time encoder. Refer to the following:
https://github.com/cybozu-go/nyamber/blob/db1370fcb6443fdfb0f95f7061749db041a35cf2/cmd/nyamber-controller/main.go#L66
https://github.com/cybozu-go/nyamber/blob/db1370fcb6443fdfb0f95f7061749db041a35cf2/controllers/suite_test.go#L68-L70

Checklist

  • Finish implementation of the issue
  • Test all functions
  • Have enough logs to trace activities
  • Notify developers of necessary actions
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

No branches or pull requests

1 participant