aboutsummaryrefslogtreecommitdiffstats
path: root/main/logger.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-04 21:40:53 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-04 21:40:53 +0000
commit754718bc640f213f16270a3a8354a9ceeef3eb34 (patch)
tree3291c871c61f22817fd6e10a9b7cd3600937723d /main/logger.c
parent204916aff5ecdaeadf011e682761f87421aadd25 (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/logger.c')
-rw-r--r--main/logger.c5
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"))