Skip to content

Commit

Permalink
Migrate to grpc LoggerV2
Browse files Browse the repository at this point in the history
  • Loading branch information
oklahomer committed Sep 28, 2019
1 parent 6f773c4 commit f42b67e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions remote/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package remote

import (
"io/ioutil"
slog "log"
"net"
"os"
"time"
Expand All @@ -23,7 +22,7 @@ var rootContext = actor.EmptyRootContext

// Start the remote server
func Start(address string, options ...RemotingOption) {
grpclog.SetLogger(slog.New(ioutil.Discard, "", 0))
grpclog.SetLoggerV2(grpclog.NewLoggerV2(ioutil.Discard, ioutil.Discard, ioutil.Discard))
lis, err := net.Listen("tcp", address)
if err != nil {
plog.Error("failed to listen", log.Error(err))
Expand Down

0 comments on commit f42b67e

Please sign in to comment.