Skip to content
Snippets Groups Projects
Commit b5f0f80f authored by Kateryna Kostiuk's avatar Kateryna Kostiuk
Browse files

logging: disable for iOS release

Disable logging for iOS release build.

Change-Id: I245d348701c42282acb11828fc4559a1d15167a9
parent 05bc0fad
Branches
Tags
No related merge requests found
......@@ -209,6 +209,9 @@ 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 (!debugMode && level == LOG_DEBUG)
return;
......@@ -220,12 +223,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 (!debugMode && level == LOG_DEBUG)
return;
......@@ -290,6 +297,7 @@ Logger::vlog(const int level, const char* file, int line, bool linefeed,
} else {
::vsyslog(level, format, ap);
}
#endif
}
} // namespace jami;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment