rotate log files every 3 MBs
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Tue, 6 Jun 2023 12:45:02 +0000 (14:45 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Wed, 7 Jun 2023 07:41:22 +0000 (07:41 +0000)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/libsync/logger.cpp

index 2bed41214c52e2f481ecd8e76d1f01ceb65f2d4e..4de392bd33883ca0be4386035009f92aac2c0364 100644 (file)
@@ -36,7 +36,7 @@
 namespace {
 
 constexpr int CrashLogSize = 20;
-constexpr int MaxLogSizeBytes = 1024 * 512;
+constexpr int MaxLogSizeBytes = 1024 * 1024 * 3;
 
 static bool compressLog(const QString &originalName, const QString &targetName)
 {