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): glibc-2.3.4-2.43 nscd-2.3.4-2.43 How reproducible: every time Steps to Reproduce: 1. edit /etc/nscd.conf and set logfile /var/log/nscd.log debug-level 9 2. restart nscd 3. tail -f /var/log/nscd.log Actual results: no timestamps on the log messages Expected results: timestamps Additional info: 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: http://sourceware.org/git/?p=glibc.git;a=commit;h=e0f471a1187cdfcb029c80819da52b4c12e352f5
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. New Contents: 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. http://rhn.redhat.com/errata/RHBA-2011-0248.html