diff options
author | Felix Lange <fjl@twurst.com> | 2017-02-24 02:31:13 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2017-02-27 22:33:12 +0800 |
commit | d0eba23af373bb54b00b242ccee4239fc9afd873 (patch) | |
tree | cf19edb8ed153797edc8da7772f6d7f0671c410b /cmd/wnode | |
parent | 43362ab4fb561323e1a766405eaa8f82dec4a280 (diff) | |
download | dexon-d0eba23af373bb54b00b242ccee4239fc9afd873.tar dexon-d0eba23af373bb54b00b242ccee4239fc9afd873.tar.gz dexon-d0eba23af373bb54b00b242ccee4239fc9afd873.tar.bz2 dexon-d0eba23af373bb54b00b242ccee4239fc9afd873.tar.lz dexon-d0eba23af373bb54b00b242ccee4239fc9afd873.tar.xz dexon-d0eba23af373bb54b00b242ccee4239fc9afd873.tar.zst dexon-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 'cmd/wnode')
-rw-r--r-- | cmd/wnode/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/wnode/main.go b/cmd/wnode/main.go index 8191f9292..82d7eda3c 100644 --- a/cmd/wnode/main.go +++ b/cmd/wnode/main.go @@ -152,7 +152,7 @@ func echo() { } func initialize() { - log.Root().SetHandler(log.LvlFilterHandler(log.Lvl(*argVerbosity), log.StreamHandler(os.Stderr, log.TerminalFormat()))) + log.Root().SetHandler(log.LvlFilterHandler(log.Lvl(*argVerbosity), log.StreamHandler(os.Stderr, log.TerminalFormat(false)))) done = make(chan struct{}) var peers []*discover.Node |