Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asterisk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Voice
asterisk
Commits
e637912c
Commit
e637912c
authored
8 years ago
by
George Joseph
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "pjproject_bundled: Fix setting max log level"
parents
f114b7b8
96e7291c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
third-party/pjproject/Makefile
+0
-2
0 additions, 2 deletions
third-party/pjproject/Makefile
third-party/pjproject/patches/0000-set_apps_initial_log_level.patch
+39
-0
39 additions, 0 deletions
...y/pjproject/patches/0000-set_apps_initial_log_level.patch
with
39 additions
and
2 deletions
third-party/pjproject/Makefile
+
0
−
2
View file @
e637912c
...
@@ -187,13 +187,11 @@ source/pjsip-apps/lib/libasterisk_malloc_debug.a: source/pjsip-apps/lib/asterisk
...
@@ -187,13 +187,11 @@ source/pjsip-apps/lib/libasterisk_malloc_debug.a: source/pjsip-apps/lib/asterisk
$(
CMD_PREFIX
)
ar qs
$@
$<
>
/dev/null 2>&1
$(
CMD_PREFIX
)
ar qs
$@
$<
>
/dev/null 2>&1
$(apps)
:
APP = $(filter pj%
,
$(subst -
,
,
$(notdir $@)))
$(apps)
:
APP = $(filter pj%
,
$(subst -
,
,
$(notdir $@)))
$(apps)
:
CFLAGS += -DPJ_LOG_MAX_LEVEL=2
$(apps)
:
LDFLAGS += $(MALLOC_DEBUG_LDFLAGS)
$(apps)
:
LDFLAGS += $(MALLOC_DEBUG_LDFLAGS)
$(apps)
:
$(MALLOC_DEBUG_LIBS) pjproject.symbols $(APP_THIRD_PARTY_LIB_FILES)
$(apps)
:
$(MALLOC_DEBUG_LIBS) pjproject.symbols $(APP_THIRD_PARTY_LIB_FILES)
$(
ECHO_PREFIX
)
Compiling
$(
APP
)
$(
ECHO_PREFIX
)
Compiling
$(
APP
)
$(
CMD_PREFIX
)
+
$(
MAKE
)
-C
source
/pjsip-apps/build
$(
filter pj%,
$(
subst -, ,
$(
notdir
$@
)))
$(
REALLY_QUIET
)
$(
CMD_PREFIX
)
+
$(
MAKE
)
-C
source
/pjsip-apps/build
$(
filter pj%,
$(
subst -, ,
$(
notdir
$@
)))
$(
REALLY_QUIET
)
source/pjsip-apps/src/python/_pjsua.o
:
CFLAGS += -DPJ_LOG_MAX_LEVEL=2
source/pjsip-apps/src/python/_pjsua.o
:
source/pjsip-apps/src/python/_pjsua.c $(apps)
source/pjsip-apps/src/python/_pjsua.o
:
source/pjsip-apps/src/python/_pjsua.c $(apps)
$(
ECHO_PREFIX
)
Compiling python bindings
$(
ECHO_PREFIX
)
Compiling python bindings
$(
CMD_PREFIX
)
$(
CC
)
-o
$@
-c
$<
$(
PYTHONDEV_INCLUDE
)
$(
CFLAGS
)
$(
PJ_CFLAGS
)
$(
CMD_PREFIX
)
$(
CC
)
-o
$@
-c
$<
$(
PYTHONDEV_INCLUDE
)
$(
CFLAGS
)
$(
PJ_CFLAGS
)
...
...
This diff is collapsed.
Click to expand it.
third-party/pjproject/patches/0000-set_apps_initial_log_level.patch
0 → 100644
+
39
−
0
View file @
e637912c
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 fb80e23..c9b21d8 100644
--- a/pjsip-apps/src/python/_pjsua.c
+++ b/pjsip-apps/src/python/_pjsua.c
@@ -4437,7 +4437,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)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment