pkg/log: create wrapper around logrus

This commit is contained in:
Leo Balduf
2017-06-20 14:58:44 +02:00
parent 153ad325b7
commit 8ed171b0ea
13 changed files with 211 additions and 77 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ import (
"context"
"net/http"
log "github.com/Sirupsen/logrus"
"github.com/chihaya/chihaya/pkg/log"
"github.com/prometheus/client_golang/prometheus"
)
@@ -42,7 +42,7 @@ func NewServer(addr string) *Server {
go func() {
if err := s.srv.ListenAndServe(); err != http.ErrServerClosed {
log.Fatal("failed while serving prometheus: " + err.Error())
log.Fatal("failed while serving prometheus", log.Err(err))
}
}()