Skip to content

Commit

Permalink
Remove service/logger.go
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Martín <carlos.martin.sanchez@gmail.com>
  • Loading branch information
carlosms committed Oct 11, 2018
1 parent c8a2d39 commit d59b56b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 31 deletions.
7 changes: 5 additions & 2 deletions server/router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ import (
"github.com/src-d/gitbase-web/server/service"
testingTools "github.com/src-d/gitbase-web/server/testing"

"github.com/sirupsen/logrus"
"github.com/stretchr/testify/suite"
log "gopkg.in/src-d/go-log.v1"
)

func TestRouterTestSuite(t *testing.T) {
Expand All @@ -29,11 +31,12 @@ type RouterTestSuite struct {
const version = "test-version"

func (s *RouterTestSuite) SetupSuite() {
logger := service.NewLogger("dev")
(&log.LoggerFactory{}).ApplyToLogrus()

staticHandler := &handler.Static{}
s.db = &testingTools.MockDB{}
s.router = server.Router(
logger,
logrus.StandardLogger(),
staticHandler,
version,
s.db,
Expand Down
29 changes: 0 additions & 29 deletions server/service/logger.go

This file was deleted.

0 comments on commit d59b56b

Please sign in to comment.