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

No way to pass time formatting for json log format, time.RFC3339 has low precision #2827

Closed
6 tasks done
abador opened this issue Oct 20, 2022 · 2 comments
Closed
6 tasks done
Labels
bug Something is not working.

Comments

@abador
Copy link
Contributor

abador commented Oct 20, 2022

Preflight checklist

Describe the bug

We're trying to bump the log precision on our Kratos instances for the json format. The default formatting is set to time.RFC3339 and we would like to set it to time.RFC3339Nano (without it it's really hard to debug, since the log order sometimes becomes corrupted). There is no way to do so at the moment. I think this should be hardcoded to time.RFC3339Nano or at least there should be an option to change it somehow via the config

Reproducing the bug

  1. Run with the json log format option

Relevant log output

No response

Relevant configuration

log:
      format: json
      level: debug

Version

0.10 + with own patches

On which operating system are you observing this issue?

No response

In which environment are you deploying?

Kubernetes

Additional Context

No response

@abador abador added the bug Something is not working. label Oct 20, 2022
@aeneasr
Copy link
Member

aeneasr commented Oct 26, 2022

This is now fixed in ory/x :)

@aeneasr
Copy link
Member

aeneasr commented Jul 27, 2023

See "This is now fixed in ory/x :)"

@aeneasr aeneasr closed this as completed Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

2 participants