turn off color logging on android as it's usually accessed over ADB (issue #14)
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Dan Ballard 2021-08-27 22:55:16 -07:00
parent 2ebba5329e
commit fd4a03e34e
1 changed files with 3 additions and 0 deletions

3
lib.go
View File

@ -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)