Skip to content

Commit

Permalink
Fix a regression in writing log
Browse files Browse the repository at this point in the history
  • Loading branch information
lawl committed Jul 16, 2020
1 parent 8161b29 commit 93ae03e
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 @@ -28,7 +28,7 @@ type input struct {

func main() {

f, err := os.OpenFile("/tmp/noisetorch.log", os.O_RDWR|os.O_CREATE, 0644)
f, err := os.OpenFile("/tmp/noisetorch.log", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0644)
if err != nil {
log.Fatalf("error opening file: %v\n", err)
}
Expand Down

0 comments on commit 93ae03e

Please sign in to comment.