Skip to content

Commit

Permalink
refactor: 更改日志文件权限
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdu2009 authored Nov 8, 2019
1 parent f552fbd commit 4e7857a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xlogrus/file_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 4e7857a

Please sign in to comment.