Skip to content

Commit

Permalink
stricter log file perm (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia authored Jan 20, 2021
1 parent 72c2fb5 commit 5daf6f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ func setupLogging() *os.File {
zerolog.SetGlobalLevel(logLevel)

if viper.IsSet("log_file") && viper.GetString("log_file") != "" {
f, err := os.OpenFile(viper.GetString("log_file"), os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
f, err := os.OpenFile(viper.GetString("log_file"), os.O_RDWR|os.O_CREATE|os.O_APPEND, 0644)
if err != nil {
log.Fatal().Msgf("error opening log file: %v", err)
}
Expand Down

0 comments on commit 5daf6f9

Please sign in to comment.