From 6c19056e8f3365fdf01708c717733ebfde45efd9 Mon Sep 17 00:00:00 2001 From: Linus Arver Date: Mon, 9 Mar 2020 20:10:22 -0700 Subject: [PATCH] use Stderr, even for fake logs --- lib/logclient/fake.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/logclient/fake.go b/lib/logclient/fake.go index 680c453f..e542207d 100644 --- a/lib/logclient/fake.go +++ b/lib/logclient/fake.go @@ -32,9 +32,9 @@ func (fakeLogClient *FakeLogClient) Close() error { return nil } // all local (stdout), with a FakeLogClient. func NewFakeLoggingFacility() *LoggingFacility { - logInfo := log.New(os.Stdout, "FAKE-INFO", log.LstdFlags) - logError := log.New(os.Stdout, "FAKE-ERROR", log.LstdFlags) - logAlert := log.New(os.Stdout, "FAKE-ALERT", log.LstdFlags) + logInfo := log.New(os.Stderr, "FAKE-INFO", log.LstdFlags) + logError := log.New(os.Stderr, "FAKE-ERROR", log.LstdFlags) + logAlert := log.New(os.Stderr, "FAKE-ALERT", log.LstdFlags) return New(logInfo, logError, logAlert, &FakeLogClient{}) }