Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

Commit

Permalink
Close #86
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbassi committed Dec 14, 2018
1 parent 625b16c commit b3ea196
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 @@ -356,7 +356,7 @@ func setupLogging() (*os.File, error) {
return nil, fmt.Errorf("failed to make the configuration directory: %v", err)
}
// open the log file
lf, err := os.OpenFile(logPath, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0660)
lf, err := os.OpenFile(logPath, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0660)
if err != nil {
return nil, fmt.Errorf("failed to open log file: %v", err)
}
Expand Down

0 comments on commit b3ea196

Please sign in to comment.