Browse Source

If we have a LOG_DIR, then disable standard stderr logging.

Currently we log everything to stderr AND to LOG_DIR, doubling log volumes.
pull/227/head
Michael Kaye 6 years ago
parent
commit
e51bdcf6ac
  1. 1
      src/github.com/matrix-org/go-neb/goneb.go

1
src/github.com/matrix-org/go-neb/goneb.go

@ -238,6 +238,7 @@ func main() {
DisableSorting: false,
}, &dugong.DailyRotationSchedule{GZip: false},
))
log.SetOutput(ioutil.Discard)
}
log.Infof("Go-NEB (%+v)", e)

Loading…
Cancel
Save