From 9f9fb6a320a2f92f78f8552666a20af4bac4130a Mon Sep 17 00:00:00 2001 From: xiaoyaofenfen <1254525673@qq.com> Date: Wed, 21 Dec 2022 15:29:15 +0800 Subject: [PATCH] change log folder permission --- internal/log/file_record.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/log/file_record.go b/internal/log/file_record.go index 798afcb..1747eee 100644 --- a/internal/log/file_record.go +++ b/internal/log/file_record.go @@ -40,7 +40,7 @@ func (f *FileRecorder) Append(item *FileRecordItem) error { savePath := f.Path folder := filepath.Dir(savePath) if b, err := utils.PathExists(folder); err == nil && !b { - os.MkdirAll(folder, os.ModePerm) + os.MkdirAll(folder, 0755) } var fp *os.File