Include process PID in log messages.

Submitted by:	Mikolaj Golub <to.my.trociny@gmail.com>
MFC after:	2 weeks
This commit is contained in:
Pawel Jakub Dawidek 2010-08-31 12:05:13 +00:00
parent 8ecdeae9d9
commit 6d19256b15
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212052

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);
}
/*