Skip to content

Commit

Permalink
Log on stderr/stdout only in debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
bakulf committed Jan 18, 2021
1 parent 165a911 commit b059498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/loghandler.cpp
Expand Up @@ -160,7 +160,7 @@ void LogHandler::addLog(const Log& log, const QMutexLocker& proofOfLock) {
prettyOutput(*m_output, log);
}

#ifdef MVPN_ANDROID
#if defined(MVPN_ANDROID)
QByteArray buffer;
QTextStream out(&buffer);
prettyOutput(out, log);
Expand All @@ -169,7 +169,7 @@ void LogHandler::addLog(const Log& log, const QMutexLocker& proofOfLock) {
if (str) {
__android_log_write(ANDROID_LOG_DEBUG, "mozillavpn", str);
}
#else
#elif defined(QT_DEBUG)
QTextStream out(stderr);
prettyOutput(out, log);
#endif
Expand Down

0 comments on commit b059498

Please sign in to comment.