text_formatter: detect tty based on fd
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
package logrus
|
||||
|
||||
// IsTerminal returns true if stderr's file descriptor is a terminal.
|
||||
func IsTerminal() bool {
|
||||
func IsTerminal(f io.Writer) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user