-
Notifications
You must be signed in to change notification settings - Fork 119
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
rhsmcertd: use ISO 8601 timestamps for the log file #3491
Conversation
^^^^^^^^^^^^^^^^^^^^^ ORIGINAL TIME STAMP FORMAT
^^^^^^^^^^^^^^^^^^^^^ NEW ISO 8601 TIME STAMP FORMAT This PR successfully writes timestamps to /var/rhsm/rhsmcertd.log in ISO 8601 format as desired on a RHEL-10 system. |
dba81aa
to
364217d
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.
Looks good, I just left some comments what could be improved.
364217d
to
0a76814
Compare
Rather than modifying and returning the static buffer of asctime(), provide a buffer for it on which to copy the resulting timestamp. Because of this, give the function a new name that indicates what it does now. While the static buffer of asctime() is still used, this will make it possible to change the implementation of this helper function to (also) not rely on that. There should be no behaviour changes.
Print the timestamp in the rhsmcertd.log log file using an ISO 8601 format with subseconds precision. The implementation needs multiple passes/fixes due to the limitations of the C APIs. Card ID: CCT-965
0a76814
to
e9acccb
Compare
/packit retest-failed |
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, thank you @ptoscano
Print the timestamp in the
rhsmcertd.log
log file using an ISO 8601format with subseconds precision. The implementation needs multiple
passes/fixes due to the limitations of the C APIs.
Card ID: CCT-965