diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-04 21:40:53 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-04 21:40:53 +0000 |
commit | 754718bc640f213f16270a3a8354a9ceeef3eb34 (patch) | |
tree | 3291c871c61f22817fd6e10a9b7cd3600937723d /main | |
parent | 204916aff5ecdaeadf011e682761f87421aadd25 (diff) |
Get rid of a warning that gets printed out when the console is configured without any logger levels
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@268203 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/logger.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/logger.c b/main/logger.c index a0beca1cd..c0df0d00c 100644 --- a/main/logger.c +++ b/main/logger.c @@ -147,7 +147,10 @@ static int make_components(char *s, int lineno) char *stringp = s; while ((w = strsep(&stringp, ","))) { - w = ast_skip_blanks(w); + w = ast_strip(w); + if (ast_strlen_zero(w)) { + continue; + } if (!strcasecmp(w, "error")) res |= (1 << __LOG_ERROR); else if (!strcasecmp(w, "warning")) |