diff --git a/v2/logutil/log.go b/v2/logutil/log.go index 4f0d0927f8243..c9d43781f8146 100644 --- a/v2/logutil/log.go +++ b/v2/logutil/log.go @@ -147,7 +147,7 @@ func (h *hook) Levels() []log.Level { // isSKippedPackageName tests wether path name is on log library calling stack. func isSkippedPackageName(name string) bool { return strings.Contains(name, "github.com/sirupsen/logrus") || - strings.Contains(name, "github.com/hrsakai/logutil") + strings.Contains(name, "github.com/hrsakai/pulsar/logutil") } // formatter is for compatibility with ngaut/log diff --git a/v2/pulsar/c_client.go b/v2/pulsar/c_client.go index 0d36682a26df5..f6cd8a89e1e99 100644 --- a/v2/pulsar/c_client.go +++ b/v2/pulsar/c_client.go @@ -29,7 +29,7 @@ import ( "strings" "unsafe" - log "github.com/hrsakai/logutil" + log "github.com/hrsakai/pulsar/logutil" ) //export pulsarClientLoggerProxy diff --git a/v2/pulsar/client.go b/v2/pulsar/client.go index 8e698573f1f5b..eeb11758e6fe7 100644 --- a/v2/pulsar/client.go +++ b/v2/pulsar/client.go @@ -22,7 +22,7 @@ package pulsar import ( "time" - log "github.com/hrsakai/logutil" + log "github.com/hrsakai/pulsar/logutil" ) func NewClient(options ClientOptions) (Client, error) { diff --git a/v2/pulsar/producer_test.go b/v2/pulsar/producer_test.go index b17d671483ecb..b3bdadda6f265 100644 --- a/v2/pulsar/producer_test.go +++ b/v2/pulsar/producer_test.go @@ -25,7 +25,7 @@ import ( "testing" "time" - log "github.com/hrsakai/logutil" + log "github.com/hrsakai/pulsar/logutil" "github.com/stretchr/testify/assert" ) diff --git a/v2/pulsar/schema.go b/v2/pulsar/schema.go index ae68cce2d6493..5175916759f27 100644 --- a/v2/pulsar/schema.go +++ b/v2/pulsar/schema.go @@ -26,7 +26,7 @@ import ( "reflect" "unsafe" - log "github.com/hrsakai/logutil" + log "github.com/hrsakai/pulsar/logutil" "github.com/gogo/protobuf/proto" "github.com/linkedin/goavro" diff --git a/v2/pulsar/schema_test.go b/v2/pulsar/schema_test.go index 6059aa8ea2163..2d4d17cc46a54 100644 --- a/v2/pulsar/schema_test.go +++ b/v2/pulsar/schema_test.go @@ -23,8 +23,8 @@ import ( "context" "testing" - log "github.com/hrsakai/logutil" - "github.com/hrsakai/pulsar/pb" + log "github.com/hrsakai/pulsar/logutil" + "github.com/hrsakai/pulsar/pulsar/pb" "github.com/stretchr/testify/assert" ) diff --git a/v2/pulsar/testhelps.go b/v2/pulsar/testhelps.go index 54e8f11d9fb27..aef9f71de520f 100644 --- a/v2/pulsar/testhelps.go +++ b/v2/pulsar/testhelps.go @@ -22,7 +22,7 @@ package pulsar import ( "bytes" "encoding/json" - log "github.com/hrsakai/logutil" + log "github.com/hrsakai/pulsar/logutil" "net/http" )