Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
fa0c4a70
Commit
fa0c4a70
authored
Jul 16, 2020
by
Kateryna Kostiuk
Browse files
iOS: fix log for debug mode
Change-Id: Ie6b67935036116b12aa5f8330e6a1a9e6a10679e
parent
55db03e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/logger.cpp
View file @
fa0c4a70
...
...
@@ -210,9 +210,10 @@ namespace jami {
void
Logger
::
log
(
int
level
,
const
char
*
file
,
int
line
,
bool
linefeed
,
const
char
*
const
format
,
...)
{
#if defined(TARGET_OS_IOS) && TARGET_OS_IOS && !debugMode
return
;
#else
#if defined(TARGET_OS_IOS) && TARGET_OS_IOS
if
(
!
debugMode
)
return
;
#endif
if
(
!
debugMode
&&
level
==
LOG_DEBUG
)
return
;
...
...
@@ -224,16 +225,16 @@ Logger::log(int level, const char* file, int line, bool linefeed, const char* co
Logger
::
vlog
(
level
,
file
,
line
,
linefeed
,
format
,
ap
);
#endif
va_end
(
ap
);
#endif
}
void
Logger
::
vlog
(
const
int
level
,
const
char
*
file
,
int
line
,
bool
linefeed
,
const
char
*
format
,
va_list
ap
)
{
#if defined(TARGET_OS_IOS) && TARGET_OS_IOS && !debugMode
return
;
#else
#if defined(TARGET_OS_IOS) && TARGET_OS_IOS
if
(
!
debugMode
)
return
;
#endif
if
(
!
debugMode
&&
level
==
LOG_DEBUG
)
return
;
...
...
@@ -298,7 +299,6 @@ Logger::vlog(const int level, const char* file, int line, bool linefeed,
}
else
{
::
vsyslog
(
level
,
format
,
ap
);
}
#endif
}
}
// namespace jami;
Write
Preview
Supports
Markdown
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