[BACK]Return to log-server.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/Attic/log-server.c between version 1.17 and 1.18

version 1.17, 2000/09/12 20:53:10 version 1.18, 2001/01/07 11:28:05
Line 43 
Line 43 
 #include "xmalloc.h"  #include "xmalloc.h"
 #include "ssh.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_on_stderr = 0;
 static int log_facility = LOG_AUTH;  static int log_facility = LOG_AUTH;
   
Line 58 
Line 58 
 {  {
         switch (level) {          switch (level) {
         case SYSLOG_LEVEL_QUIET:          case SYSLOG_LEVEL_QUIET:
         case SYSLOG_LEVEL_ERROR:  
         case SYSLOG_LEVEL_FATAL:          case SYSLOG_LEVEL_FATAL:
         case SYSLOG_LEVEL_INFO:          case SYSLOG_LEVEL_ERROR:
           case SYSLOG_LEVEL_NOTICE:
         case SYSLOG_LEVEL_VERBOSE:          case SYSLOG_LEVEL_VERBOSE:
         case SYSLOG_LEVEL_DEBUG1:          case SYSLOG_LEVEL_DEBUG1:
         case SYSLOG_LEVEL_DEBUG2:          case SYSLOG_LEVEL_DEBUG2:
Line 128 
Line 128 
         if (level > log_level)          if (level > log_level)
                 return;                  return;
         switch (level) {          switch (level) {
           case SYSLOG_LEVEL_FATAL:
                   txt = "fatal";
                   pri = LOG_CRIT;
                   break;
         case SYSLOG_LEVEL_ERROR:          case SYSLOG_LEVEL_ERROR:
                 txt = "error";                  txt = "error";
                 pri = LOG_ERR;                  pri = LOG_ERR;
                 break;                  break;
         case SYSLOG_LEVEL_FATAL:          case SYSLOG_LEVEL_NOTICE:
                 txt = "fatal";                  pri = LOG_NOTICE;
                 pri = LOG_ERR;  
                 break;                  break;
         case SYSLOG_LEVEL_INFO:  
         case SYSLOG_LEVEL_VERBOSE:          case SYSLOG_LEVEL_VERBOSE:
                 pri = LOG_INFO;                  pri = LOG_INFO;
                 break;                  break;

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18