nghttpx: Include pid in errorlog

This commit is contained in:
Tatsuhiro Tsujikawa 2014-07-05 22:53:17 +09:00
parent afdc61a253
commit fe2843f9d6
1 changed files with 2 additions and 1 deletions

View File

@ -118,8 +118,9 @@ Log::~Log()
auto tty = worker_config.errorlog_tty;
rv = snprintf(buf, sizeof(buf),
"%s [%s%s%s] %s\n %s(%s:%d)%s\n",
"%s PID%d [%s%s%s] %s\n %s(%s:%d)%s\n",
get_config()->cached_time,
getpid(),
tty ? SEVERITY_COLOR[severity_] : "",
SEVERITY_STR[severity_],
tty ? "\033[0m" : "",