From f875db1821ba675c9e53ca100374403e9d0462d1 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Fri, 21 May 2004 12:38:52 +0000 Subject: it looks like parse_log_level() was never taught about WARN? svn:r1917 --- src/common/log.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/common/log.c') diff --git a/src/common/log.c b/src/common/log.c index 1b77cc49ae..f3c7281b11 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -225,14 +225,15 @@ int add_file_log(int loglevelMin, int loglevelMax, const char *filename) int parse_log_level(const char *level) { if (!strcasecmp(level, "err")) return LOG_ERR; - else if (!strcasecmp(level, "notice")) + if (!strcasecmp(level, "warn")) + return LOG_WARN; + if (!strcasecmp(level, "notice")) return LOG_NOTICE; - else if (!strcasecmp(level, "info")) + if (!strcasecmp(level, "info")) return LOG_INFO; - else if (!strcasecmp(level, "debug")) + if (!strcasecmp(level, "debug")) return LOG_DEBUG; - else - return -1; + return -1; } int get_min_log_level(void) -- cgit v1.2.3-54-g00ecf