use 0755 to create new dir (#68)
This commit is contained in:
+1
-1
@@ -206,7 +206,7 @@ func (l *Logger) rotate() error {
|
||||
// openNew opens a new log file for writing, moving any old log file out of the
|
||||
// way. This methods assumes the file has already been closed.
|
||||
func (l *Logger) openNew() error {
|
||||
err := os.MkdirAll(l.dir(), 0744)
|
||||
err := os.MkdirAll(l.dir(), 0755)
|
||||
if err != nil {
|
||||
return fmt.Errorf("can't make directories for new logfile: %s", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user