mirror of
https://github.com/php/php-src.git
synced 2024-11-28 04:14:26 +08:00
Removed pid in debug logs written by chrildren processes
This commit is contained in:
parent
d6f5f3782b
commit
0f19777b7a
@ -93,7 +93,11 @@ void zlog_ex(const char *function, int line, int flags, const char *fmt, ...) /*
|
||||
len = zlog_print_time(&tv, buf, buf_size);
|
||||
}
|
||||
if (zlog_level == ZLOG_DEBUG) {
|
||||
len += snprintf(buf + len, buf_size - len, "%s: pid %d, %s(), line %d: ", level_names[flags & ZLOG_LEVEL_MASK], getpid(), function, line);
|
||||
if (!fpm_globals.is_child) {
|
||||
len += snprintf(buf + len, buf_size - len, "%s: pid %d, %s(), line %d: ", level_names[flags & ZLOG_LEVEL_MASK], getpid(), function, line);
|
||||
} else {
|
||||
len += snprintf(buf + len, buf_size - len, "%s: %s(), line %d: ", level_names[flags & ZLOG_LEVEL_MASK], function, line);
|
||||
}
|
||||
} else {
|
||||
len += snprintf(buf + len, buf_size - len, "%s: ", level_names[flags & ZLOG_LEVEL_MASK]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user