From 4e7857a19913787e8144f45e882f82b8e958ded1 Mon Sep 17 00:00:00 2001 From: nickxb Date: Fri, 8 Nov 2019 14:31:01 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=9B=B4=E6=94=B9=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E6=96=87=E4=BB=B6=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xlogrus/file_handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xlogrus/file_handler.go b/xlogrus/file_handler.go index af18217f..6a96dbf0 100644 --- a/xlogrus/file_handler.go +++ b/xlogrus/file_handler.go @@ -7,10 +7,10 @@ import ( ) func NewFileHandler(fileName string) (io.WriteCloser, error) { - file, err := os.OpenFile(fileName, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0640) + file, err := os.OpenFile(fileName, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644) if err != nil { return nil, errors.WithStack(err) } return file, nil -} \ No newline at end of file +}