Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer (GitLab) <jacob@gitlab.com>2018-03-07 15:07:01 +0300
committerNick Thomas <nick@gitlab.com>2018-03-07 15:07:01 +0300
commit64f6d823b4ce2656047ffca2844ef4d6cf79ec77 (patch)
tree462ff00bf05f56e04418d3d0d2cfcc59ec8fe45e /helpers_test.go
parent0b69e09383eb22a8904bfed1479800d13f7325a4 (diff)
Structured logging
Diffstat (limited to 'helpers_test.go')
-rw-r--r--helpers_test.go4
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
}