From 1ea959d2cb5cee68a266517f5d87a79d9de377ce Mon Sep 17 00:00:00 2001 From: Orpheus Lummis Date: Mon, 9 May 2022 10:54:00 -0400 Subject: [PATCH] refactor: Use new logger in net/api (#420) --- net/api/service.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/api/service.go b/net/api/service.go index 5a4a3ce58b..dc138b0866 100644 --- a/net/api/service.go +++ b/net/api/service.go @@ -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 { @@ -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 {