This commit is contained in:
Anton Tiurin 2015-03-10 19:06:14 +03:00
parent 98fd21de2c
commit a8b793a1fc
2 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,3 @@
package logrus package logrus
import "syscall" import "syscall"

View File

@ -6,7 +6,7 @@ import (
"runtime" "runtime"
) )
func (logger *Logger) Writer() (*io.PipeWriter) { func (logger *Logger) Writer() *io.PipeWriter {
reader, writer := io.Pipe() reader, writer := io.Pipe()
go logger.writerScanner(reader) go logger.writerScanner(reader)