forked from cwtch.im/libcwtch-go
Merge pull request 'turn off color logging on android as it's usually accessed over ADB (issue #14)' (#23) from cleanup into trunk
Reviewed-on: cwtch.im/libcwtch-go#23
This commit is contained in:
commit
81d22e08a2
3
lib.go
3
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)
|
||||
|
|
Loading…
Reference in New Issue