mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Reduce debugging messages from WARNING to DEBUG
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16922 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
8
loader.c
8
loader.c
@@ -375,18 +375,18 @@ static int fixup(const char *caller)
|
|||||||
/* print some debugging info for new modules */
|
/* print some debugging info for new modules */
|
||||||
if (m->state == MS_NEW &&
|
if (m->state == MS_NEW &&
|
||||||
(m->cb.exported_symbols || m->cb.required_symbols))
|
(m->cb.exported_symbols || m->cb.required_symbols))
|
||||||
ast_log(LOG_WARNING,
|
ast_log(LOG_NOTICE,
|
||||||
"module %-30s exports %p requires %p state %s(%d)\n",
|
"module %-30s exports %p requires %p state %s(%d)\n",
|
||||||
m->resource, m->cb.exported_symbols,
|
m->resource, m->cb.exported_symbols,
|
||||||
m->cb.required_symbols,
|
m->cb.required_symbols,
|
||||||
st_name(m->state), m->state);
|
st_name(m->state), m->state);
|
||||||
}
|
}
|
||||||
ast_log(LOG_WARNING, "---- fixup (%s): %d modules, %d new ---\n",
|
ast_log(LOG_DEBUG, "---- fixup (%s): %d modules, %d new ---\n",
|
||||||
caller, total, new);
|
caller, total, new);
|
||||||
for (;;cycle++) {
|
for (;;cycle++) {
|
||||||
int again = 0; /* set if we need another round */
|
int again = 0; /* set if we need another round */
|
||||||
|
|
||||||
ast_log(LOG_WARNING, "---- fixup: cycle %d ---\n", cycle);
|
ast_log(LOG_DEBUG, "---- fixup: cycle %d ---\n", cycle);
|
||||||
AST_LIST_TRAVERSE(&module_list, m, next) {
|
AST_LIST_TRAVERSE(&module_list, m, next) {
|
||||||
if (resolve(m))
|
if (resolve(m))
|
||||||
again = 1; /* something changed */
|
again = 1; /* something changed */
|
||||||
@@ -417,7 +417,7 @@ static int fixup(const char *caller)
|
|||||||
if (!again) /* we are done */
|
if (!again) /* we are done */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
ast_log(LOG_WARNING, "---- fixup complete ---\n");
|
ast_log(LOG_DEBUG, "---- fixup complete ---\n");
|
||||||
in_fixup--;
|
in_fixup--;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user