summaryrefslogtreecommitdiff
path: root/log-server.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-01-08 06:13:41 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-01-08 06:13:41 +0000
commita383baac4604a7de1710e87fba0403e4a56d5472 (patch)
tree62d267f992fd15d00e9382f95199b138877435b7 /log-server.c
parent9ce907c3d60637943dfa46a4542164498be19ea8 (diff)
20010108
- (bal) Fixed another typo in cli.c - (bal) OpenBSD Sync - markus@cvs.openbsd.org 2001/01/07 21:26:55 [cli.c] typo - markus@cvs.openbsd.org 2001/01/07 21:26:55 [cli.c] missing free, stevesk@pobox.com - markus@cvs.openbsd.org 2001/01/07 19:06:25 [auth1.c] missing free, stevesk@pobox.com - markus@cvs.openbsd.org 2001/01/07 11:28:04 [log-client.c log-server.c log.c readconf.c servconf.c ssh.1 ssh.h sshd.8 sshd.c] rename SYSLOG_LEVEL_INFO->SYSLOG_LEVEL_NOTICE syslog priority changes: fatal() LOG_ERR -> LOG_CRIT log() LOG_INFO -> LOG_NOTICE
Diffstat (limited to 'log-server.c')
-rw-r--r--log-server.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/log-server.c b/log-server.c
index 943c31417..2335a3ef4 100644
--- a/log-server.c
+++ b/log-server.c
@@ -36,14 +36,14 @@
36 */ 36 */
37 37
38#include "includes.h" 38#include "includes.h"
39RCSID("$OpenBSD: log-server.c,v 1.17 2000/09/12 20:53:10 markus Exp $"); 39RCSID("$OpenBSD: log-server.c,v 1.18 2001/01/07 11:28:05 markus Exp $");
40 40
41#include <syslog.h> 41#include <syslog.h>
42#include "packet.h" 42#include "packet.h"
43#include "xmalloc.h" 43#include "xmalloc.h"
44#include "ssh.h" 44#include "ssh.h"
45 45
46static LogLevel log_level = SYSLOG_LEVEL_INFO; 46static LogLevel log_level = SYSLOG_LEVEL_NOTICE;
47static int log_on_stderr = 0; 47static int log_on_stderr = 0;
48static int log_facility = LOG_AUTH; 48static int log_facility = LOG_AUTH;
49 49
@@ -58,9 +58,9 @@ log_init(char *av0, LogLevel level, SyslogFacility facility, int on_stderr)
58{ 58{
59 switch (level) { 59 switch (level) {
60 case SYSLOG_LEVEL_QUIET: 60 case SYSLOG_LEVEL_QUIET:
61 case SYSLOG_LEVEL_ERROR:
62 case SYSLOG_LEVEL_FATAL: 61 case SYSLOG_LEVEL_FATAL:
63 case SYSLOG_LEVEL_INFO: 62 case SYSLOG_LEVEL_ERROR:
63 case SYSLOG_LEVEL_NOTICE:
64 case SYSLOG_LEVEL_VERBOSE: 64 case SYSLOG_LEVEL_VERBOSE:
65 case SYSLOG_LEVEL_DEBUG1: 65 case SYSLOG_LEVEL_DEBUG1:
66 case SYSLOG_LEVEL_DEBUG2: 66 case SYSLOG_LEVEL_DEBUG2:
@@ -133,15 +133,17 @@ do_log(LogLevel level, const char *fmt, va_list args)
133 if (level > log_level) 133 if (level > log_level)
134 return; 134 return;
135 switch (level) { 135 switch (level) {
136 case SYSLOG_LEVEL_FATAL:
137 txt = "fatal";
138 pri = LOG_CRIT;
139 break;
136 case SYSLOG_LEVEL_ERROR: 140 case SYSLOG_LEVEL_ERROR:
137 txt = "error"; 141 txt = "error";
138 pri = LOG_ERR; 142 pri = LOG_ERR;
139 break; 143 break;
140 case SYSLOG_LEVEL_FATAL: 144 case SYSLOG_LEVEL_NOTICE:
141 txt = "fatal"; 145 pri = LOG_NOTICE;
142 pri = LOG_ERR;
143 break; 146 break;
144 case SYSLOG_LEVEL_INFO:
145 case SYSLOG_LEVEL_VERBOSE: 147 case SYSLOG_LEVEL_VERBOSE:
146 pri = LOG_INFO; 148 pri = LOG_INFO;
147 break; 149 break;