Merge pull request #650 from alrs/fix-events-stream-err

modules/events_stream: fix dropped error
This commit is contained in:
evilsocket 2019-11-13 02:22:34 +01:00 committed by GitHub
commit 6fd7827eea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
}
}
}