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 +}