This commit is contained in:
parent
f6cebcdeff
commit
44b0fddf07
@ -1,5 +1,6 @@
|
||||
0.8.3dev
|
||||
========
|
||||
17-Mar-2018: - Improved syslog output (more consistent behavior)
|
||||
17-Jan-2018: - Deal with OPTION requests that have Max-Forwards=0
|
||||
(RFC3261, "11.2 Processing of OPTIONS Request" and
|
||||
"16.3 Request Validation, step 3")
|
||||
|
||||
@ -77,7 +77,7 @@ static int silence_level=1;
|
||||
static pthread_mutex_t log_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
|
||||
void log_init(void) {
|
||||
openlog(NULL,LOG_NDELAY|LOG_PID,LOG_DAEMON);
|
||||
openlog("siproxd", LOG_NDELAY|LOG_PID, LOG_DAEMON);
|
||||
}
|
||||
|
||||
void log_end(void) {
|
||||
@ -257,7 +257,7 @@ static void output_to_syslog(const char *label, int level, va_list ap,
|
||||
va_copy(ap_copy, ap);
|
||||
vsnprintf(outbuf, sizeof(outbuf), format, ap_copy);
|
||||
va_end(ap_copy);
|
||||
syslog(LOG_USER|level, "%s:%i %s%s", file, line, label, outbuf);
|
||||
syslog(LOG_DAEMON|level, "%s:%i %s%s", file, line, label, outbuf);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user