diff options
author | Roger Dingledine <arma@torproject.org> | 2003-09-26 22:27:24 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-09-26 22:27:24 +0000 |
commit | bf10a3c0f1d23d906d1044e9c99c08d921e70d5a (patch) | |
tree | ab25d191cc505ce593b95654b609921293411152 /src/or | |
parent | ab8bceb27acbf8b88480ac11b21e8ab7429c6d40 (diff) | |
download | tor-bf10a3c0f1d23d906d1044e9c99c08d921e70d5a.tar.gz tor-bf10a3c0f1d23d906d1044e9c99c08d921e70d5a.zip |
finish enforcing the log convention
svn:r494
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/config.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/or/config.c b/src/or/config.c index 348d8d7868..8c42480eee 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -277,24 +277,16 @@ int getconfig(int argc, char **argv, or_options_t *options) { /* 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; } } |