Skip to content

Commit

Permalink
get rid of interal.app.Logger
Browse files Browse the repository at this point in the history
but internal/test/ needs its own Logger definition to avoid
circular import problems with internal/lg/ tests
  • Loading branch information
ploxiln committed May 26, 2017
1 parent 91a0f33 commit 4203909
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
5 changes: 0 additions & 5 deletions internal/app/logger.go

This file was deleted.

8 changes: 4 additions & 4 deletions internal/test/logger.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package test

import (
"github.com/nsqio/nsq/internal/app"
)
type Logger interface {
Output(maxdepth int, s string) error
}

type tbLog interface {
Log(...interface{})
Expand All @@ -17,6 +17,6 @@ func (tl *testLogger) Output(maxdepth int, s string) error {
return nil
}

func NewTestLogger(tbl tbLog) app.Logger {
func NewTestLogger(tbl tbLog) Logger {
return &testLogger{tbl}
}

0 comments on commit 4203909

Please sign in to comment.