Add attributes to various API calls, to help track down bugs (and remove a deprecated function)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115157 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2008-05-02 02:33:04 +00:00
parent 9e82fd7ec4
commit b11854445b
8 changed files with 128 additions and 88 deletions

View File

@@ -1117,7 +1117,10 @@ static int ast_makesocket(void)
ast_socket = -1;
return -1;
}
ast_register_verbose(network_verboser);
if (ast_register_verbose(network_verboser)) {
ast_log(LOG_WARNING, "Unable to register network verboser?\n");
}
ast_pthread_create_background(&lthread, NULL, listener, NULL);
if (!ast_strlen_zero(ast_config_AST_CTL_OWNER)) {
@@ -2914,7 +2917,9 @@ int main(int argc, char *argv[])
}
if (ast_opt_console || option_verbose || (ast_opt_remote && !ast_opt_exec)) {
ast_register_verbose(console_verboser);
if (ast_register_verbose(console_verboser)) {
ast_log(LOG_WARNING, "Unable to register console verboser?\n");
}
WELCOME_MESSAGE;
}