[asterisk-commits] twilson: branch twilson/config_work r364352 - /team/twilson/config_work/main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Apr 27 17:22:27 CDT 2012
Author: twilson
Date: Fri Apr 27 17:22:22 2012
New Revision: 364352
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=364352
Log:
Make it more clear that these conditions are ERRORS
Modified:
team/twilson/config_work/main/config_options.c
Modified: team/twilson/config_work/main/config_options.c
URL: http://svnview.digium.com/svn/asterisk/team/twilson/config_work/main/config_options.c?view=diff&rev=364352&r1=364351&r2=364352
==============================================================================
--- team/twilson/config_work/main/config_options.c (original)
+++ team/twilson/config_work/main/config_options.c Fri Apr 27 17:22:22 2012
@@ -460,7 +460,7 @@
for (var = ast_variable_browse(cfg, cat); var; var = var->next) {
RAII_VAR(struct aco_option *, opt, aco_option_find(container, var->name, cat), ao2_cleanup);
if (!opt) {
- ast_log(LOG_WARNING, "Could not find option suitable for category '%s' named '%s' at line %d of %s\n", cat, var->name, var->lineno, var->file);
+ ast_log(LOG_ERROR, "Could not find option suitable for category '%s' named '%s' at line %d of %s\n", cat, var->name, var->lineno, var->file);
return -1;
}
if (!opt->handler) {
@@ -469,7 +469,7 @@
return -1;
}
if (opt->handler(opt, var, obj)) {
- ast_log(LOG_WARNING, "Error parsing %s=%s at line %d of %s\n", var->name, var->value, var->lineno, var->file);
+ ast_log(LOG_ERROR, "Error parsing %s=%s at line %d of %s\n", var->name, var->value, var->lineno, var->file);
return -1;
}
}
More information about the asterisk-commits
mailing list