diff --git a/obs-status-service/rabbitmq.go b/obs-status-service/rabbitmq.go index 974ac8b..ee62ce1 100644 --- a/obs-status-service/rabbitmq.go +++ b/obs-status-service/rabbitmq.go @@ -120,7 +120,7 @@ func ProcessingObsMessages(host, username, password, queueName string) { }() var err error - out, err = os.OpenFile("messages.txt", os.O_WRONLY, 0644) + out, err = os.OpenFile("messages.txt", os.O_WRONLY | os.O_APPEND, 0644) if err != nil { log.Printf("Cannot open message.txt: %v", err) return