mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:53:34 +03:00
skip the pid from the logging
This commit is contained in:
parent
daeb143177
commit
0a83fa90bb
2 changed files with 3 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue