Skip to content

Commit

Permalink
use Stderr, even for fake logs
Browse files Browse the repository at this point in the history
  • Loading branch information
listx committed Mar 10, 2020
1 parent af12317 commit 6c19056
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/logclient/fake.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{})
}

0 comments on commit 6c19056

Please sign in to comment.