Skip to content

Commit

Permalink
refactor: Use new logger in net/api (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
orpheuslummis authored May 9, 2022
1 parent 6d41b10 commit 1ea959d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/api/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ package api
import (
"context"

logging "github.com/ipfs/go-log/v2"
libpeer "github.com/libp2p/go-libp2p-core/peer"
ma "github.com/multiformats/go-multiaddr"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

"github.com/sourcenetwork/defradb/logging"
"github.com/sourcenetwork/defradb/net"
pb "github.com/sourcenetwork/defradb/net/api/pb"
)

var (
log = logging.Logger("netapi")
log = logging.MustNewLogger("defra.netapi")
)

type Service struct {
Expand All @@ -41,7 +41,7 @@ func (s *Service) AddReplicator(
ctx context.Context,
req *pb.AddReplicatorRequest,
) (*pb.AddReplicatorReply, error) {
log.Debug("Received AddReplicator requeust")
log.Debug(ctx, "Received AddReplicator request")

collection := string(req.Collection)
if len(collection) == 0 {
Expand Down

0 comments on commit 1ea959d

Please sign in to comment.