Bug 10742 - add timestamps to nscd logs
Summary: add timestamps to nscd logs
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: nscd (show other bugs)
Version: 2.10
: P2 normal
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-06 22:01 UTC by Jeffrey Bastian
Modified: 2014-07-01 06:41 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
patch to add timestamps to nscd log (629 bytes, patch)
2009-10-06 22:02 UTC, Jeffrey Bastian
Details | Diff
updated patch (440 bytes, patch)
2009-10-29 13:53 UTC, Jeffrey Bastian
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Bastian 2009-10-06 22:01:50 UTC
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.
Comment 1 Jeffrey Bastian 2009-10-06 22:02:55 UTC
Created attachment 4259 [details]
patch to add timestamps to nscd log
Comment 2 Jeffrey Bastian 2009-10-29 13:53:15 UTC
Created attachment 4338 [details]
updated patch

This updated patch only adds the timestamps to the logs (it removes the thread
id logging).
Comment 3 Ulrich Drepper 2009-10-29 20:45:47 UTC
I've applied a slightly modified patch.