Skip to content

Commit

Permalink
Fix path v2
Browse files Browse the repository at this point in the history
  • Loading branch information
hrsakai committed Jun 16, 2020
1 parent d6f7fc6 commit 6b0018e
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion v2/logutil/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -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/pulsar/logutil")
strings.Contains(name, "github.com/hrsakai/pulsar/v2/logutil")
}

// formatter is for compatibility with ngaut/log
Expand Down
2 changes: 1 addition & 1 deletion v2/pulsar/c_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"strings"
"unsafe"

log "github.com/hrsakai/pulsar/logutil"
log "github.com/hrsakai/pulsar/v2/logutil"
)

//export pulsarClientLoggerProxy
Expand Down
2 changes: 1 addition & 1 deletion v2/pulsar/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package pulsar
import (
"time"

log "github.com/hrsakai/pulsar/logutil"
log "github.com/hrsakai/pulsar/v2/logutil"
)

func NewClient(options ClientOptions) (Client, error) {
Expand Down
2 changes: 1 addition & 1 deletion v2/pulsar/producer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"testing"
"time"

log "github.com/hrsakai/pulsar/logutil"
log "github.com/hrsakai/pulsar/v2/logutil"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion v2/pulsar/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"reflect"
"unsafe"

log "github.com/hrsakai/pulsar/logutil"
log "github.com/hrsakai/pulsar/v2/logutil"

"github.com/gogo/protobuf/proto"
"github.com/linkedin/goavro"
Expand Down
4 changes: 2 additions & 2 deletions v2/pulsar/schema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"context"
"testing"

log "github.com/hrsakai/pulsar/logutil"
"github.com/hrsakai/pulsar/pulsar/pb"
log "github.com/hrsakai/pulsar/v2/logutil"
"github.com/hrsakai/pulsar/v2/pulsar/pb"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion v2/pulsar/testhelps.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package pulsar
import (
"bytes"
"encoding/json"
log "github.com/hrsakai/pulsar/logutil"
log "github.com/hrsakai/pulsar/v2/logutil"
"net/http"
)

Expand Down

0 comments on commit 6b0018e

Please sign in to comment.