From 9bfcd79e3654888d86feb056a8b04d8b68103c14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Sun, 18 Sep 2022 16:42:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=A9=E5=B0=8F=E6=97=A5=E5=BF=97=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=B0=BA=E5=AF=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/apps/log_writer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/apps/log_writer.go b/internal/apps/log_writer.go index 02ff473..07dc004 100644 --- a/internal/apps/log_writer.go +++ b/internal/apps/log_writer.go @@ -41,7 +41,7 @@ func (this *LogWriter) Init() { this.c = make(chan string, 1024) // 异步写入文件 - var maxFileSize = 2 * sizes.G // 文件最大尺寸,超出此尺寸则清空 + var maxFileSize = 128 * sizes.M // 文件最大尺寸,超出此尺寸则清空 if fp != nil { goman.New(func() { var totalSize int64 = 0