From 99ea0a33686c2576b021d0f4b1dd58466a63d044 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Thu, 9 Feb 2017 15:46:27 +0000 Subject: [PATCH] Use sirupsen/logrus instead of abcum fork --- log/fmt.go | 5 +++-- log/log.go | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/log/fmt.go b/log/fmt.go index 5a6e5c52..4835038e 100644 --- a/log/fmt.go +++ b/log/fmt.go @@ -17,13 +17,14 @@ package log import ( "bytes" "fmt" + "os" "runtime" "sort" "strings" "time" - "github.com/abcum/logrus" "github.com/mgutz/ansi" + "github.com/sirupsen/logrus" ) const clear = ansi.Reset @@ -35,7 +36,7 @@ var ( func init() { baseTimestamp = time.Now() - isTerminal = logrus.IsTerminal() + isTerminal = logrus.IsTerminal(os.Stdout) } func miniTS() int { diff --git a/log/log.go b/log/log.go index b0968fe6..8ab59027 100644 --- a/log/log.go +++ b/log/log.go @@ -18,7 +18,7 @@ import ( "os" "time" - "github.com/abcum/logrus" + "github.com/sirupsen/logrus" ) var log *Logger