Skip to content

Commit 0c65b4b

Browse files
committed
file permission supplied for dir creation
1 parent 2870b66 commit 0c65b4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

receiver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Copyright (c) 2016 Jeevanandam M (https://github.com/jeevatkm)
2-
// resty source code and usage is governed by a MIT style
2+
// go-aah/log source code and usage is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

55
package log
@@ -251,7 +251,7 @@ func (r *Receiver) openFile() error {
251251

252252
name := r.fileName()
253253
dir := filepath.Dir(name)
254-
_ = ess.MkDirAll(dir)
254+
_ = ess.MkDirAll(dir, 0755)
255255

256256
file, err := os.OpenFile(name, os.O_CREATE|os.O_APPEND|os.O_WRONLY, filePermission)
257257
if err != nil {

0 commit comments

Comments
 (0)