.
This commit is contained in:
parent
53505ec1f3
commit
89eff4164d
@ -120,7 +120,7 @@ func ProcessingObsMessages(host, username, password, queueName string) {
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
var err error
|
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 {
|
if err != nil {
|
||||||
log.Printf("Cannot open message.txt: %v", err)
|
log.Printf("Cannot open message.txt: %v", err)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user