4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-07-06 10:44:04 +00:00

Upgrade logrus / testify to stable versions

This commit is contained in:
Duco van Amstel
2018-11-18 00:28:29 +00:00
parent 455a0fc239
commit 692bb8faa7
274 changed files with 57824 additions and 14282 deletions

View File

@ -0,0 +1,20 @@
// +build !appengine,!js,windows
package logrus
import (
"io"
"os"
"syscall"
)
func checkIfTerminal(w io.Writer) bool {
switch v := w.(type) {
case *os.File:
var mode uint32
err := syscall.GetConsoleMode(syscall.Handle(v.Fd()), &mode)
return err == nil
default:
return false
}
}