Commit fa0c4a70 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

iOS: fix log for debug mode

Change-Id: Ie6b67935036116b12aa5f8330e6a1a9e6a10679e
parent 55db03e8
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment