54 lines
1.5 KiB
Diff
54 lines
1.5 KiB
Diff
From c40ad6ba454fdf6456d8ffa92faa4cd49f2c807d Mon Sep 17 00:00:00 2001
|
|
From: Richard Mudgett <rmudgett@digium.com>
|
|
Date: Thu, 23 Feb 2017 17:11:00 -0600
|
|
Subject: [PATCH 3/5] 0000-set_apps_initial_log_level.patch
|
|
|
|
---
|
|
pjsip-apps/src/pjsua/main.c | 2 ++
|
|
pjsip-apps/src/pjsystest/main_console.c | 2 ++
|
|
pjsip-apps/src/python/_pjsua.c | 3 ++-
|
|
3 files changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/pjsip-apps/src/pjsua/main.c b/pjsip-apps/src/pjsua/main.c
|
|
index 2baaf82..11831f2 100644
|
|
--- a/pjsip-apps/src/pjsua/main.c
|
|
+++ b/pjsip-apps/src/pjsua/main.c
|
|
@@ -126,5 +126,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);
|
|
}
|
|
diff --git a/pjsip-apps/src/pjsystest/main_console.c b/pjsip-apps/src/pjsystest/main_console.c
|
|
index 122cdc7..dc79eab 100644
|
|
--- a/pjsip-apps/src/pjsystest/main_console.c
|
|
+++ b/pjsip-apps/src/pjsystest/main_console.c
|
|
@@ -133,6 +133,8 @@ void gui_sleep(unsigned sec)
|
|
|
|
int main()
|
|
{
|
|
+ pj_log_set_level(1);
|
|
+
|
|
if (systest_init() != PJ_SUCCESS)
|
|
return 1;
|
|
|
|
diff --git a/pjsip-apps/src/python/_pjsua.c b/pjsip-apps/src/python/_pjsua.c
|
|
index 31b835e..3e15030 100644
|
|
--- a/pjsip-apps/src/python/_pjsua.c
|
|
+++ b/pjsip-apps/src/python/_pjsua.c
|
|
@@ -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)
|
|
--
|
|
2.7.4
|
|
|