Make logger report error,warning,notice if logger.conf

not found, also updated chan_oss to give correct
error message if its config file is not found.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@9232 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Matt O'Gorman
2006-02-08 22:12:34 +00:00
parent eb177856db
commit 917259bcd3
2 changed files with 14 additions and 2 deletions

View File

@@ -1376,6 +1376,9 @@ int load_module(void)
store_config(cfg, ctg);
} while ( (ctg = ast_category_browse(cfg, ctg)) != NULL);
ast_config_destroy(cfg);
} else {
ast_log(LOG_NOTICE, "Unable to load config oss.conf\n");
return -1;
}
if (find_desc(oss_active) == NULL) {
ast_log(LOG_NOTICE, "Device %s not found\n", oss_active);