[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] finish enforcing the log convention
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
config.c
Log Message:
finish enforcing the log convention
Index: config.c
===================================================================
RCS file: /home/or/cvsroot/src/or/config.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- config.c 26 Sep 2003 10:03:49 -0000 1.45
+++ config.c 26 Sep 2003 22:27:24 -0000 1.46
@@ -277,24 +277,16 @@
/* Validate options */
if(options->LogLevel) {
- if(!strcmp(options->LogLevel,"emerg"))
- options->loglevel = LOG_EMERG;
- else if(!strcmp(options->LogLevel,"alert"))
- options->loglevel = LOG_ALERT;
- else if(!strcmp(options->LogLevel,"crit"))
- options->loglevel = LOG_CRIT;
else if(!strcmp(options->LogLevel,"err"))
options->loglevel = LOG_ERR;
else if(!strcmp(options->LogLevel,"warning"))
options->loglevel = LOG_WARNING;
- else if(!strcmp(options->LogLevel,"notice"))
- options->loglevel = LOG_NOTICE;
else if(!strcmp(options->LogLevel,"info"))
options->loglevel = LOG_INFO;
else if(!strcmp(options->LogLevel,"debug"))
options->loglevel = LOG_DEBUG;
else {
- log(LOG_ERR,"LogLevel must be one of emerg|alert|crit|err|warning|notice|info|debug.");
+ log(LOG_ERR,"LogLevel must be one of err|warning|info|debug.");
result = -1;
}
}