pjsip-apps: Set initial log level to 1 (#2912)

When pjsua is started or when the python bindings are initialized
tons of debug log messages are emitted before the command line
"log-level" arguments are processed.  This causes quite a bit
of unnecessary log space to be used.  To combat this,
pj_log_set_level(1) is now called before anything else.  The
command line arguments can, of course, still set any level
later on.
remotes/origin/oob-rtcp-xr
George Joseph 3 years ago committed by GitHub
parent 7b8ea759e1
commit f395420e3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -157,5 +157,7 @@ int main_func(int argc, char *argv[])
int main(int argc, char *argv[])
{
pj_log_set_level(1);
return pj_run_app(&main_func, argc, argv, 0);
}

@ -133,6 +133,8 @@ void gui_sleep(unsigned sec)
int main()
{
pj_log_set_level(1);
if (systest_init() != PJ_SUCCESS)
return 1;

@ -4434,7 +4434,8 @@ init_pjsua(void)
PyObject* m = NULL;
#define ADD_CONSTANT(mod,name) PyModule_AddIntConstant(mod,#name,name)
pj_log_set_level(1);
PyEval_InitThreads();
if (PyType_Ready(&PyTyp_pjsua_callback) < 0)

Loading…
Cancel
Save