Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
4bef511e
Commit
4bef511e
authored
Feb 18, 2016
by
Gautier Pelloux-Prayer
Browse files
linphonecore.c: fix log collection
parent
2cab9fe9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
coreapi/linphonecore.c
coreapi/linphonecore.c
+3
-3
No files found.
coreapi/linphonecore.c
View file @
4bef511e
...
...
@@ -169,7 +169,7 @@ const LinphoneAddress *linphone_core_get_current_call_remote_address(struct _Lin
static
void
linphone_core_log_collection_handler
(
const
char
*
domain
,
OrtpLogLevel
level
,
const
char
*
fmt
,
va_list
args
);
void
linphone_core_set_log_handler
(
OrtpLogFunc
logfunc
)
{
if
(
ortp_
logv_out
==
linphone_core_log_collection_handler
)
{
if
(
ortp_
get_log_handler
()
==
linphone_core_log_collection_handler
)
{
ms_message
(
"There is already a log collection handler, keep it"
);
liblinphone_log_func
=
logfunc
;
}
else
...
...
@@ -389,7 +389,7 @@ void linphone_core_enable_log_collection(LinphoneLogCollectionState state) {
/* at first call of this function, set liblinphone_log_func to the current
* ortp log function */
if
(
liblinphone_log_func
==
NULL
){
liblinphone_log_func
=
ortp_
logv_out
;
liblinphone_log_func
=
ortp_
get_log_handler
()
;
}
liblinphone_log_collection_state
=
state
;
if
(
state
!=
LinphoneLogCollectionDisabled
)
{
...
...
@@ -397,7 +397,7 @@ void linphone_core_enable_log_collection(LinphoneLogCollectionState state) {
if
(
state
==
LinphoneLogCollectionEnabledWithoutPreviousLogHandler
)
{
liblinphone_log_func
=
NULL
;
}
else
{
liblinphone_log_func
=
ortp_
logv_out
;
liblinphone_log_func
=
ortp_
get_log_handler
()
;
}
ortp_set_log_handler
(
linphone_core_log_collection_handler
);
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment