-
Notifications
You must be signed in to change notification settings - Fork 41
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
log: improve timestamps on stderr log output #321
Conversation
1f2da31
to
36d7c8e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if logging the date provides much value since stderr-full
is - usually - used for local development etc. and with journal
logging we get the date anyway. The milliseconds might be pretty useful for developing, though.
ee6f146
to
e3b58a5
Compare
@mkemel What is going on with this PR? |
So now it's a full timestamp including timezone |
Basically make the time format function testable by passing the time struct to it like Martin described here: |
@engelmi That's what I did, but time struct does not have timezone info. |
We are not talking about |
Okay, all done including tests |
Integration test failure is unrelated |
This adds date and milliseconds to the timestamp output to stderr-full, and also adds timestamp to stderr log output Signed-off-by: Mark Kemel <[email protected]>
Signed-off-by: Mark Kemel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for adding unit tests!
Any ideas? Or just skip unit test for that one?
Set the timezone for the test using an environment variable?
|
This adds date and milliseconds to the timestamp output to stderr-full, and also adds timestamp to stderr log output