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
No related branches found
No related tags found
No related merge requests found
...@@ -209,6 +209,9 @@ namespace jami { ...@@ -209,6 +209,9 @@ namespace jami {
void void
Logger::log(int level, const char* file, int line, bool linefeed, const char* const format, ...) 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) if (!debugMode && level == LOG_DEBUG)
return; return;
...@@ -220,12 +223,16 @@ Logger::log(int level, const char* file, int line, bool linefeed, const char* co ...@@ -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); Logger::vlog(level, file, line, linefeed, format, ap);
#endif #endif
va_end(ap); va_end(ap);
#endif
} }
void void
Logger::vlog(const int level, const char* file, int line, bool linefeed, Logger::vlog(const int level, const char* file, int line, bool linefeed,
const char* format, va_list ap) const char* format, va_list ap)
{ {
#if defined(TARGET_OS_IOS) && TARGET_OS_IOS && !debugMode
return;
#else
if (!debugMode && level == LOG_DEBUG) if (!debugMode && level == LOG_DEBUG)
return; return;
...@@ -290,6 +297,7 @@ Logger::vlog(const int level, const char* file, int line, bool linefeed, ...@@ -290,6 +297,7 @@ Logger::vlog(const int level, const char* file, int line, bool linefeed,
} else { } else {
::vsyslog(level, format, ap); ::vsyslog(level, format, ap);
} }
#endif
} }
} // namespace jami; } // namespace jami;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment