summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2016-05-14 20:37:43 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-05-14 20:37:43 -0500
commitacdd0ae993c06a82b436abf35f0a14e22cc308d8 (patch)
tree6246e1d693b93d54cc3646c8fb95a5bcd971d6c3 /main
parent14938184a38bd76b0b7bf04d583bbc1c2933407d (diff)
parent9f996624b09f2610ed1b80e8cbbc3f1885bb1c6f (diff)
Merge "logger: Add PID to syslog messages."
Diffstat (limited to 'main')
-rw-r--r--main/logger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/logger.c b/main/logger.c
index 42a1c7000..c9cf50e09 100644
--- a/main/logger.c
+++ b/main/logger.c
@@ -531,6 +531,7 @@ static struct logchannel *make_logchannel(const char *channel, const char *compo
}
chan->type = LOGTYPE_SYSLOG;
+ openlog("asterisk", LOG_PID, chan->facility);
} else {
if (!(chan->fileptr = fopen(chan->filename, "a"))) {
/* Can't do real logging here since we're called with a lock