diff options
author | Jacob Vosmaer (GitLab) <jacob@gitlab.com> | 2018-03-07 15:07:01 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-03-07 15:07:01 +0300 |
commit | 64f6d823b4ce2656047ffca2844ef4d6cf79ec77 (patch) | |
tree | 462ff00bf05f56e04418d3d0d2cfcc59ec8fe45e /helpers_test.go | |
parent | 0b69e09383eb22a8904bfed1479800d13f7325a4 (diff) |
Structured logging
Diffstat (limited to 'helpers_test.go')
-rw-r--r-- | helpers_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers_test.go b/helpers_test.go index 9f372224..4d732d81 100644 --- a/helpers_test.go +++ b/helpers_test.go @@ -5,7 +5,6 @@ import ( "crypto/tls" "fmt" "io/ioutil" - "log" "net" "net/http" "os" @@ -14,6 +13,7 @@ import ( "testing" "time" + log "github.com/sirupsen/logrus" "github.com/stretchr/testify/assert" ) @@ -36,7 +36,7 @@ func setUpTests() { err := os.Chdir("shared/pages") if err != nil { - log.Println("Chdir:", err) + log.WithError(err).Print("chdir") } else { chdirSet = true } |