Merge "PJPROJECT logging: Fix detection of max supported log level." into 13

This commit is contained in:
George Joseph
2017-01-26 18:52:31 -06:00
committed by Gerrit Code Review
5 changed files with 50 additions and 11 deletions

View File

@@ -325,6 +325,7 @@ int ast_verb_sys_level;
int option_verbose; /*!< Verbosity level */
int option_debug; /*!< Debug level */
int ast_pjproject_max_log_level = -1;/* Default to -1 to know if we have read the level from pjproject yet. */
int ast_option_pjproject_log_level;
double ast_option_maxload; /*!< Max load avg on system */
int ast_option_maxcalls; /*!< Max number of active calls */

View File

@@ -47,7 +47,7 @@ ASTERISK_REGISTER_FILE()
int ast_pj_init(void)
{
#ifdef HAVE_PJPROJECT_BUNDLED
pj_log_set_level(ast_option_pjproject_log_level);
AST_PJPROJECT_INIT_LOG_LEVEL();
pj_init();
#endif
return 0;