aboutsummaryrefslogtreecommitdiffstats
path: root/swarm
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2017-02-24 02:31:13 +0800
committerFelix Lange <fjl@twurst.com>2017-02-27 22:33:12 +0800
commitd0eba23af373bb54b00b242ccee4239fc9afd873 (patch)
treecf19edb8ed153797edc8da7772f6d7f0671c410b /swarm
parent43362ab4fb561323e1a766405eaa8f82dec4a280 (diff)
downloadgo-tangerine-d0eba23af373bb54b00b242ccee4239fc9afd873.tar
go-tangerine-d0eba23af373bb54b00b242ccee4239fc9afd873.tar.gz
go-tangerine-d0eba23af373bb54b00b242ccee4239fc9afd873.tar.bz2
go-tangerine-d0eba23af373bb54b00b242ccee4239fc9afd873.tar.lz
go-tangerine-d0eba23af373bb54b00b242ccee4239fc9afd873.tar.xz
go-tangerine-d0eba23af373bb54b00b242ccee4239fc9afd873.tar.zst
go-tangerine-d0eba23af373bb54b00b242ccee4239fc9afd873.zip
all: disable log message colors outside of geth
Also tweak behaviour so colors are only enabled when stderr is a terminal.
Diffstat (limited to 'swarm')
-rw-r--r--swarm/network/syncdb_test.go2
1 files changed, 1 insertions, 1 deletions
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 {