summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/log.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2001-01-18 16:20:21 +0000
committermarkus <markus@openbsd.org>2001-01-18 16:20:21 +0000
commit882d1914f8e25cf39958ba657f0a59f899e34636 (patch)
treeea90bbf79a0c9db15510c31e6b4680ceb9d647fc /usr.bin/ssh/log.c
parentdon't call rsa-keygen from signalhandler. (diff)
downloadwireguard-openbsd-882d1914f8e25cf39958ba657f0a59f899e34636.tar.xz
wireguard-openbsd-882d1914f8e25cf39958ba657f0a59f899e34636.zip
log() is at pri=LOG_INFO, since LOG_NOTICE goes to /dev/console on many systems
Diffstat (limited to 'usr.bin/ssh/log.c')
-rw-r--r--usr.bin/ssh/log.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/ssh/log.c b/usr.bin/ssh/log.c
index 7dfffa185f5..94b189b8da6 100644
--- a/usr.bin/ssh/log.c
+++ b/usr.bin/ssh/log.c
@@ -36,7 +36,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: log.c,v 1.13 2001/01/07 11:28:05 markus Exp $");
+RCSID("$OpenBSD: log.c,v 1.14 2001/01/18 16:20:21 markus Exp $");
#include "ssh.h"
#include "xmalloc.h"
@@ -71,7 +71,7 @@ log(const char *fmt,...)
{
va_list args;
va_start(args, fmt);
- do_log(SYSLOG_LEVEL_NOTICE, fmt, args);
+ do_log(SYSLOG_LEVEL_INFO, fmt, args);
va_end(args);
}
@@ -206,13 +206,12 @@ static struct {
{ "QUIET", SYSLOG_LEVEL_QUIET },
{ "FATAL", SYSLOG_LEVEL_FATAL },
{ "ERROR", SYSLOG_LEVEL_ERROR },
- { "NOTICE", SYSLOG_LEVEL_NOTICE },
+ { "INFO", SYSLOG_LEVEL_INFO },
{ "VERBOSE", SYSLOG_LEVEL_VERBOSE },
{ "DEBUG", SYSLOG_LEVEL_DEBUG1 },
{ "DEBUG1", SYSLOG_LEVEL_DEBUG1 },
{ "DEBUG2", SYSLOG_LEVEL_DEBUG2 },
{ "DEBUG3", SYSLOG_LEVEL_DEBUG3 },
- { "INFO", SYSLOG_LEVEL_NOTICE }, /* backward compatible */
{ NULL, 0 }
};