summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/log-server.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2001-01-07 11:28:08 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2001-01-07 11:28:08 +0000
commit5b5399944622ef5572cb808121362661137a9659 (patch)
tree126e4c5d6ee9f7e43d5563c5ab45be1da7a67516 /usr.bin/ssh/log-server.c
parent707678298e1d72e5dde175c4346126ac899934d3 (diff)
rename SYSLOG_LEVEL_INFO->SYSLOG_LEVEL_NOTICE
syslog priority changes: fatal() LOG_ERR -> LOG_CRIT log() LOG_INFO -> LOG_NOTICE
Diffstat (limited to 'usr.bin/ssh/log-server.c')
-rw-r--r--usr.bin/ssh/log-server.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/usr.bin/ssh/log-server.c b/usr.bin/ssh/log-server.c
index de3d5cfeb97..9946a1b60bf 100644
--- a/usr.bin/ssh/log-server.c
+++ b/usr.bin/ssh/log-server.c
@@ -36,14 +36,14 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: log-server.c,v 1.17 2000/09/12 20:53:10 markus Exp $");
+RCSID("$OpenBSD: log-server.c,v 1.18 2001/01/07 11:28:05 markus Exp $");
#include <syslog.h>
#include "packet.h"
#include "xmalloc.h"
#include "ssh.h"
-static LogLevel log_level = SYSLOG_LEVEL_INFO;
+static LogLevel log_level = SYSLOG_LEVEL_NOTICE;
static int log_on_stderr = 0;
static int log_facility = LOG_AUTH;
@@ -58,9 +58,9 @@ log_init(char *av0, LogLevel level, SyslogFacility facility, int on_stderr)
{
switch (level) {
case SYSLOG_LEVEL_QUIET:
- case SYSLOG_LEVEL_ERROR:
case SYSLOG_LEVEL_FATAL:
- case SYSLOG_LEVEL_INFO:
+ case SYSLOG_LEVEL_ERROR:
+ case SYSLOG_LEVEL_NOTICE:
case SYSLOG_LEVEL_VERBOSE:
case SYSLOG_LEVEL_DEBUG1:
case SYSLOG_LEVEL_DEBUG2:
@@ -128,15 +128,17 @@ do_log(LogLevel level, const char *fmt, va_list args)
if (level > log_level)
return;
switch (level) {
+ case SYSLOG_LEVEL_FATAL:
+ txt = "fatal";
+ pri = LOG_CRIT;
+ break;
case SYSLOG_LEVEL_ERROR:
txt = "error";
pri = LOG_ERR;
break;
- case SYSLOG_LEVEL_FATAL:
- txt = "fatal";
- pri = LOG_ERR;
+ case SYSLOG_LEVEL_NOTICE:
+ pri = LOG_NOTICE;
break;
- case SYSLOG_LEVEL_INFO:
case SYSLOG_LEVEL_VERBOSE:
pri = LOG_INFO;
break;