Skip to content

Commit

Permalink
Refactor EnsureLogFilePath function in zaplogger_logpath.go to use mo…
Browse files Browse the repository at this point in the history
…re restrictive directory permissions
  • Loading branch information
ShocOne committed Apr 18, 2024
1 parent c658732 commit f5229cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logger/zaplogger_logpath.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func EnsureLogFilePath(logPath string) (string, error) {

// Ensure the directory exists
dir := filepath.Dir(logPath)
if err := os.MkdirAll(dir, 0755); err != nil {
if err := os.MkdirAll(dir, 0750); err != nil {
return "", err
}

Expand Down

0 comments on commit f5229cf

Please sign in to comment.