aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorlawl <github@dumbinter.net>2020-07-16 11:46:37 +0200
committerlawl <github@dumbinter.net>2020-07-16 11:46:37 +0200
commit93ae03e98793ba20dbc4dc5bab7229fa67528ec6 (patch)
tree5e9334d971f63dd552edd38bd591147eda8d8829 /main.go
parent8161b29bd137d4719e846be6b5fb21f5b5b5b4b2 (diff)
downloadnoisetorch-93ae03e98793ba20dbc4dc5bab7229fa67528ec6.tar.gz
noisetorch-93ae03e98793ba20dbc4dc5bab7229fa67528ec6.zip
Fix a regression in writing log
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 9b5934a..55c4141 100644
--- a/main.go
+++ b/main.go
@@ -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)
}