|
|
@ -148,12 +148,10 @@ static int make_components(char *s, int lineno)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
char *w;
|
|
|
|
char *w;
|
|
|
|
int res = 0;
|
|
|
|
int res = 0;
|
|
|
|
char *stringp=NULL;
|
|
|
|
char *stringp = s;
|
|
|
|
stringp=s;
|
|
|
|
|
|
|
|
w = strsep(&stringp, ",");
|
|
|
|
while ((w = strsep(&stringp, ","))) {
|
|
|
|
while(w) {
|
|
|
|
w = ast_skip_blanks(w);
|
|
|
|
while(*w && (*w < 33))
|
|
|
|
|
|
|
|
w++;
|
|
|
|
|
|
|
|
if (!strcasecmp(w, "error"))
|
|
|
|
if (!strcasecmp(w, "error"))
|
|
|
|
res |= (1 << __LOG_ERROR);
|
|
|
|
res |= (1 << __LOG_ERROR);
|
|
|
|
else if (!strcasecmp(w, "warning"))
|
|
|
|
else if (!strcasecmp(w, "warning"))
|
|
|
@ -171,8 +169,8 @@ static int make_components(char *s, int lineno)
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
fprintf(stderr, "Logfile Warning: Unknown keyword '%s' at line %d of logger.conf\n", w, lineno);
|
|
|
|
fprintf(stderr, "Logfile Warning: Unknown keyword '%s' at line %d of logger.conf\n", w, lineno);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
w = strsep(&stringp, ",");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return res;
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|