[Fedora-directory-commits] esc/src/lib/NssHttpClient request.cpp, 1.2, 1.3

Jack Magne (jmagne) fedora-directory-commits at redhat.com
Sat Feb 24 02:12:17 UTC 2007


Author: jmagne

Update of /cvs/dirsec/esc/src/lib/NssHttpClient
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1926

Modified Files:
	request.cpp 
Log Message:
Add time stamps to log messages.



Index: request.cpp
===================================================================
RCS file: /cvs/dirsec/esc/src/lib/NssHttpClient/request.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- request.cpp	27 Sep 2006 17:49:21 -0000	1.2
+++ request.cpp	24 Feb 2007 02:12:15 -0000	1.3
@@ -24,7 +24,7 @@
 #include "request.h"
 #include "engine.h"
 #include <prlog.h>
-
+#include <time.h>
 PRLogModuleInfo *httpLog = PR_NewLogModule("coolKeyHttpReq");
 
 /**
@@ -249,6 +249,7 @@
 
 PRBool PSHttpRequest::send( PRFileDesc *sock ) {
     const char *hostname;
+    char tBuff[56];
 
     PRBool rv = PR_FALSE;
     if (!sock) {
@@ -319,7 +320,7 @@
     data = PR_sprintf_append(data,"\r\n");
 
     PR_LOG( httpLog, PR_LOG_DEBUG, 
-                       ("PSHttpRequest::PSHttpRequest: data %s\n",data));
+                       ("%s PSHttpRequest::PSHttpRequest: data %s\n",GetTStamp(tBuff,56),data));
 
     int len = PL_strlen(data);
     //send the data ..




More information about the Fedora-directory-commits mailing list