From fd4a03e34eb9ca3dd3acd6d89cde2db2fb19de32 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Fri, 27 Aug 2021 22:55:16 -0700 Subject: [PATCH] turn off color logging on android as it's usually accessed over ADB (issue #14) --- lib.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib.go b/lib.go index 75a11d3..cd20494 100644 --- a/lib.go +++ b/lib.go @@ -81,6 +81,9 @@ func StartCwtch(appDir string, torPath string) int { log.Errorf("could not create file log: %v\n", err) } } + if runtime.GOOS == "android" { + log.SetUseColor(false) + } log.SetLevel(log.LevelInfo) if logLevel := os.Getenv("LOG_LEVEL"); strings.ToLower(logLevel) == "debug" { log.SetLevel(log.LevelDebug)