diff --git a/src/gui/application.cpp b/src/gui/application.cpp index 7aee62a202040..171acc75cfa8a 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -700,7 +700,7 @@ void Application::setupLogging() logger->setLogDir(_logDir.isEmpty() ? ConfigFile().logDir() : _logDir); } logger->setLogExpire(_logExpire > 0 ? _logExpire : ConfigFile().logExpire()); -#if defined NEXTCLOUD_DEV +#if defined NEXTCLOUD_DEV && NEXTCLOUD_DEV logger->setLogFlush(true); logger->setLogDebug(true); #else diff --git a/src/libsync/logger.cpp b/src/libsync/logger.cpp index 060705ba6c8ef..66c853559287b 100644 --- a/src/libsync/logger.cpp +++ b/src/libsync/logger.cpp @@ -120,7 +120,7 @@ void Logger::doLog(QtMsgType type, const QMessageLogContext &ctx, const QString { static long long int linesCounter = 0; const auto &msg = qFormatLogMessage(type, ctx, message); -#if defined Q_OS_WIN && (defined NEXTCLOUD_DEV || defined QT_DEBUG) +#if defined Q_OS_WIN && ((defined NEXTCLOUD_DEV && NEXTCLOUD_DEV) || defined QT_DEBUG) // write logs to Output window of Visual Studio { QString prefix;