]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
enable dev logs only when NEXTCLOUD_DEV is defined to value 1
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Wed, 2 Oct 2024 13:14:27 +0000 (15:14 +0200)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Fri, 4 Oct 2024 10:02:39 +0000 (12:02 +0200)
will switch back production logs to the intended behavior

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/gui/application.cpp
src/libsync/logger.cpp

index 7aee62a2020408f55ce8dffefde6821074cfb71e..171acc75cfa8a8b3b21a2e5beff6db47cf1ba2dc 100644 (file)
@@ -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
index 060705ba6c8ef15e286b174ba497aa5be25bb2f2..66c853559287b031192df70963c7670c92bed10a 100644 (file)
@@ -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;