[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.17.2.1

version 1.17, 2000/09/12 20:53:10 version 1.17.2.1, 2001/02/16 20:13:04
Line 41 
Line 41 
 #include <syslog.h>  #include <syslog.h>
 #include "packet.h"  #include "packet.h"
 #include "xmalloc.h"  #include "xmalloc.h"
 #include "ssh.h"  #include "log.h"
   
 static LogLevel log_level = SYSLOG_LEVEL_INFO;  static LogLevel log_level = SYSLOG_LEVEL_INFO;
 static int log_on_stderr = 0;  static int log_on_stderr = 0;
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_ERROR:
         case SYSLOG_LEVEL_INFO:          case SYSLOG_LEVEL_INFO:
         case SYSLOG_LEVEL_VERBOSE:          case SYSLOG_LEVEL_VERBOSE:
         case SYSLOG_LEVEL_DEBUG1:          case SYSLOG_LEVEL_DEBUG1:
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:  
                 txt = "fatal";  
                 pri = LOG_ERR;  
                 break;  
         case SYSLOG_LEVEL_INFO:          case SYSLOG_LEVEL_INFO:
                   pri = LOG_INFO;
                   break;
         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.17.2.1