diff options
author | phk <phk@FreeBSD.org> | 2000-11-25 21:00:58 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-11-25 21:00:58 +0000 |
commit | bf5f9966440e453c64d6cab1380dfac33542001d (patch) | |
tree | 9bfe44f81cbadb74120f9ba78fe90927089d1b1c /usr.sbin/syslogd | |
parent | 24be0469f9100377c4aafdb8a17bb2624a3dde61 (diff) | |
download | FreeBSD-src-bf5f9966440e453c64d6cab1380dfac33542001d.zip FreeBSD-src-bf5f9966440e453c64d6cab1380dfac33542001d.tar.gz |
Add the "LOG_CONSOLE" facility and tell syslogd to not log it on
console devices.
Diffstat (limited to 'usr.sbin/syslogd')
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 4cdf5b4..aa3c08a 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -667,6 +667,8 @@ printsys(p) pri = 10 * pri + (*p - '0'); if (*p == '>') ++p; + if (LOG_FAC(pri) == LOG_CONSOLE) + flags |= IGN_CONS; } else { /* kernel printf's come out on console */ flags |= IGN_CONS; |