mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 15:10:48 +01:00
When logging via syslog, include the pid whenever we provide
a log entry. Suggested by Todd Fries. svn:r5366
This commit is contained in:
parent
bf3e689eef
commit
ed4f15b2a7
1 changed files with 1 additions and 1 deletions
|
@ -511,7 +511,7 @@ add_syslog_log(int loglevelMin, int loglevelMax)
|
||||||
logfile_t *lf;
|
logfile_t *lf;
|
||||||
if (syslog_count++ == 0)
|
if (syslog_count++ == 0)
|
||||||
/* This is the first syslog. */
|
/* This is the first syslog. */
|
||||||
openlog("Tor", LOG_NDELAY, LOG_DAEMON);
|
openlog("Tor", LOG_PID | LOG_NDELAY, LOG_DAEMON);
|
||||||
|
|
||||||
lf = tor_malloc_zero(sizeof(logfile_t));
|
lf = tor_malloc_zero(sizeof(logfile_t));
|
||||||
lf->min_loglevel = loglevelMin;
|
lf->min_loglevel = loglevelMin;
|
||||||
|
|
Loading…
Add table
Reference in a new issue