From 1986efca1a120a68c5fa09c1ca61662fa4539701 Mon Sep 17 00:00:00 2001 From: yangsen Date: Tue, 2 Jul 2024 14:32:36 +0800 Subject: [PATCH] up log max record size to 4MB (#513) --- .../src/main/java/com/qiniu/android/collect/ReportConfig.java | 2 +- library/src/main/java/com/qiniu/android/common/Config.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/src/main/java/com/qiniu/android/collect/ReportConfig.java b/library/src/main/java/com/qiniu/android/collect/ReportConfig.java index 61b66459..b3506443 100644 --- a/library/src/main/java/com/qiniu/android/collect/ReportConfig.java +++ b/library/src/main/java/com/qiniu/android/collect/ReportConfig.java @@ -24,7 +24,7 @@ public class ReportConfig { public long uploadThreshold; /** - * 记录文件最大值 要大于 uploadThreshold 单位:字节 默认为20 * 1024 * 1024 + * 记录文件最大值 要大于 uploadThreshold 单位:字节 默认为4 * 1024 * 1024 */ public long maxRecordFileSize; diff --git a/library/src/main/java/com/qiniu/android/common/Config.java b/library/src/main/java/com/qiniu/android/common/Config.java index dd3c48c4..c75a5780 100644 --- a/library/src/main/java/com/qiniu/android/common/Config.java +++ b/library/src/main/java/com/qiniu/android/common/Config.java @@ -56,7 +56,7 @@ public final class Config { *

* 记录文件大于此值后暂停记录上传信息。 */ - public static int maxRecordFileSize = 20 * 1024 * 1024; + public static int maxRecordFileSize = 4 * 1024 * 1024; /** * 记录文件大于 uploadThreshold 后才可能触发上传,单位:字节。