Skip to content

Commit

Permalink
[logging] refs fibercrypto#298 - Change permissions of file for logs …
Browse files Browse the repository at this point in the history
…to 0600
  • Loading branch information
AntiD2ta committed Jan 21, 2020
1 parent 3bf565f commit 2cfd783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/logging/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func Disable() {

// GetFileToLog get a file with path <dir> for the logger's output
func GetFileToLog(dir string) (io.Writer, error) {
f, err := os.OpenFile(dir+".log", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
f, err := os.OpenFile(dir+".log", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0600)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 2cfd783

Please sign in to comment.