浏览代码

rotate log files every 3 MBs

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Matthieu Gallien 2 年之前
父节点
当前提交
747c4dcf2f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/libsync/logger.cpp

+ 1 - 1
src/libsync/logger.cpp

@@ -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)
 {