mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
enable dev logs only when NEXTCLOUD_DEV is defined to value 1
will switch back production logs to the intended behavior Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
94e8fb8a89
commit
48932ba57b
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user