diff --git a/main/logger.c b/main/logger.c index a0beca1cd7..c0df0d00c3 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"))