mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merge "PJPROJECT logging: Fix detection of max supported log level." into 13
This commit is contained in:
@@ -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 */
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user