[asterisk-commits] file: branch 12 r404029 - /branches/12/res/res_sorcery_config.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Dec 17 12:34:19 CST 2013
Author: file
Date: Tue Dec 17 12:34:16 2013
New Revision: 404029
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=404029
Log:
res_sorcery_config: Output an error message when an object can't be created.
If object creation fails an error message will now be output with the id, type,
and configuration file.
Modified:
branches/12/res/res_sorcery_config.c
Modified: branches/12/res/res_sorcery_config.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/res/res_sorcery_config.c?view=diff&rev=404029&r1=404028&r2=404029
==============================================================================
--- branches/12/res/res_sorcery_config.c (original)
+++ branches/12/res/res_sorcery_config.c Tue Dec 17 12:34:16 2013
@@ -265,14 +265,15 @@
if (!(obj = ast_sorcery_alloc(sorcery, type, id)) ||
ast_sorcery_objectset_apply(sorcery, obj, ast_variable_browse(cfg, id))) {
- ast_debug(1, "Could not create an object of type '%s' with id '%s' from configuration file '%s'\n",
- type, id, config->filename);
if (config->file_integrity) {
ast_log(LOG_ERROR, "Config file '%s' could not be loaded due to error with object '%s' of type '%s'\n",
config->filename, id, type);
ast_config_destroy(cfg);
return;
+ } else {
+ ast_log(LOG_ERROR, "Could not create an object of type '%s' with id '%s' from configuration file '%s'\n",
+ type, id, config->filename);
}
ao2_cleanup(obj);
More information about the asterisk-commits
mailing list