Skip to content

Commit

Permalink
Create log file if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
christophermaier committed Nov 4, 2016
1 parent cfafb38 commit 98a910d
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 @@ -70,7 +70,7 @@ func configureLogger(config *config.Config) {
case "stdout":
log.SetOutput(os.Stdout)
default:
logFile, err := os.Open(config.LogPath)
logFile, err := os.OpenFile(config.LogPath, os.O_WRONLY | os.O_APPEND | os.O_CREATE, 0644)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 98a910d

Please sign in to comment.