Description of problem:
When nscd debugging is enabled, the debug log file does not contain timestamps.
If you're trying to debug a sporadic problem, it can be difficult to map debug
log entries to when the problem actually happened without timestamps.
Attached is a patch to add timestamps to the nscd debug log.
It also uses the thread id instead of the process id on Linux systems.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. edit /etc/nscd.conf and set
2. restart nscd
3. tail -f /var/log/nscd.log
no timestamps on the log messages
reported upstream at http://sourceware.org/bugzilla/show_bug.cgi?id=10742
Created attachment 363912 [details]
patch to add timestamps to nscd log
A variant of the patch (timestamps but no thread ids) was accepted upstream:
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
The nscd service has been updated to include time stamps in the log file.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.