modules/events_stream: fix dropped error

This commit is contained in:
Lars Lehtonen 2019-11-11 21:58:31 -08:00
commit fb0c2df643
No known key found for this signature in database
GPG key ID: 8137D474EBCB04F2

View file

@ -242,6 +242,9 @@ func (mod *EventsStream) Configure() (err error) {
mod.output = os.Stdout
} else if mod.outputName, err = fs.Expand(output); err == nil {
mod.output, err = os.OpenFile(mod.outputName, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
return err
}
}
}