]> granicus.if.org Git - curl/commitdiff
skip the pid from the logging
authorDaniel Stenberg <daniel@haxx.se>
Tue, 15 Jun 2004 10:28:56 +0000 (10:28 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 15 Jun 2004 10:28:56 +0000 (10:28 +0000)
tests/ftpserver.pl
tests/server/sws.c

index 02d0fd7f423f00c730a35cfbb0bcf5f6c3efb70b..b5767957118dd9975ff84676c904806e9506f19b 100644 (file)
@@ -43,8 +43,7 @@ sub logmsg {
     my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
         localtime(time);
     open(FTPLOG, ">>log/ftpd.log");
-    printf FTPLOG ("%02d:%02d:%02d (%d) ",
-                   $hour, $min, $sec, $$);
+    printf FTPLOG ("%02d:%02d:%02d ", $hour, $min, $sec);
     print FTPLOG @_;
     close(FTPLOG);
 }
index 7c345efbaf4e17ab7432a77a3a565a79962f8d93..e420be855d56c82c3339ea7932f44464cadf4154 100644 (file)
@@ -191,10 +191,10 @@ static void logmsg(const char *msg, ...)
   logfp = fopen(DEFAULT_LOGFILE, "a");
 
   fprintf(logfp?logfp:stderr, /* write to stderr if the logfile doesn't open */
-          "%02d:%02d:%02d (%d) %s\n",
+          "%02d:%02d:%02d %s\n",
           curr_time->tm_hour,
           curr_time->tm_min,
-          curr_time->tm_sec, (int)getpid(), buffer);
+          curr_time->tm_sec, buffer);
   if(logfp)
     fclose(logfp);
 }