From e51bdcf6ac78828a2e90f313683b30b4ab46082c Mon Sep 17 00:00:00 2001 From: Michael Kaye <1917473+michaelkaye@users.noreply.github.com> Date: Wed, 18 Apr 2018 16:04:03 +0100 Subject: [PATCH] If we have a LOG_DIR, then disable standard stderr logging. Currently we log everything to stderr AND to LOG_DIR, doubling log volumes. --- src/github.com/matrix-org/go-neb/goneb.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/github.com/matrix-org/go-neb/goneb.go b/src/github.com/matrix-org/go-neb/goneb.go index c3463b3..444fd70 100644 --- a/src/github.com/matrix-org/go-neb/goneb.go +++ b/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)