From d0eba23af373bb54b00b242ccee4239fc9afd873 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 23 Feb 2017 19:31:13 +0100 Subject: all: disable log message colors outside of geth Also tweak behaviour so colors are only enabled when stderr is a terminal. --- swarm/network/syncdb_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swarm/network') diff --git a/swarm/network/syncdb_test.go b/swarm/network/syncdb_test.go index a9417e1d4..be21d156f 100644 --- a/swarm/network/syncdb_test.go +++ b/swarm/network/syncdb_test.go @@ -31,7 +31,7 @@ import ( ) func init() { - log.Root().SetHandler(log.LvlFilterHandler(log.LvlCrit, log.StreamHandler(os.Stderr, log.TerminalFormat()))) + log.Root().SetHandler(log.LvlFilterHandler(log.LvlCrit, log.StreamHandler(os.Stderr, log.TerminalFormat(false)))) } type testSyncDb struct { -- cgit