Skip to content

Commit

Permalink
update logger.go
Browse files Browse the repository at this point in the history
  • Loading branch information
yzj authored and yzj committed Jul 5, 2022
1 parent 41050c6 commit 8a3d203
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions log/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -631,10 +631,10 @@ func (l *Logger) compressLogFile(srcFile, dstFile string) error {
_ = f.Close()
}()

if err = os.MkdirAll(l.dir(), 0755); err != nil {
if err = os.MkdirAll(l.dir(), 0750); err != nil {
return err
}
gzf, err := os.OpenFile(filepath.Join(l.dir(), filepath.Clean(dstFile)), os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0644)
gzf, err := os.OpenFile(filepath.Join(l.dir(), filepath.Clean(dstFile)), os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0600)
if err != nil {
return err
}
Expand Down

0 comments on commit 8a3d203

Please sign in to comment.