Include process PID in log messages.

Submitted by:	Mikolaj Golub <to.my.trociny@gmail.com>
MFC after:	2 weeks
This commit is contained in:
pjd 2010-08-31 12:05:13 +00:00
parent d9a5627136
commit 1c05a32422

View File

@ -57,6 +57,9 @@ pjdlog_mode_set(int mode)
assert(mode == PJDLOG_MODE_STD || mode == PJDLOG_MODE_SYSLOG);
pjdlog_mode = mode;
if (mode == PJDLOG_MODE_SYSLOG)
openlog(NULL, LOG_PID, LOG_DAEMON);
}
/*