This commit is contained in:
Sad Pencil 2019-02-23 07:09:28 +08:00
parent 12b7bdf705
commit 45dcbc8d3a

View file

@ -22,7 +22,7 @@ func InitOutputFile(outputFile string) {
os.Exit(1) os.Exit(1)
} }
var err error var err error
file, err = os.OpenFile(outputFile, os.O_APPEND|os.O_CREATE, 0644) file, err = os.OpenFile(outputFile, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil { if err != nil {
fmt.Fprintln(os.Stderr, "Failed to create log file for timing.") fmt.Fprintln(os.Stderr, "Failed to create log file for timing.")
fmt.Fprintln(os.Stderr, err) fmt.Fprintln(os.Stderr, err)