diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-06-15 10:28:56 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-06-15 10:28:56 +0000 |
commit | 0a83fa90bb600220f8578569cf2aec8414a4a5e1 (patch) | |
tree | 70f42aa2e971ed9b51c6c6a5a6eba139ba3f96fe /tests | |
parent | daeb1431775b5f6fb561ae7f884e7fb3f1cd2226 (diff) |
skip the pid from the logging
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ftpserver.pl | 3 | ||||
-rw-r--r-- | tests/server/sws.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl index 02d0fd7f4..b57679571 100644 --- a/tests/ftpserver.pl +++ b/tests/ftpserver.pl @@ -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); } diff --git a/tests/server/sws.c b/tests/server/sws.c index 7c345efba..e420be855 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -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); } |