
1. Updated etcd/protobuf/grpc dependencies: echo " hack/pin-dependency.sh github.com/golang/protobuf latest hack/pin-dependency.sh google.golang.org/protobuf latest hack/pin-dependency.sh go.etcd.io/etcd/api/v3 v3.5.0-rc.0 hack/pin-dependency.sh go.etcd.io/etcd/client/v3 v3.5.0-rc.0 hack/pin-dependency.sh go.etcd.io/etcd/client/pkg/v3 v3.5.0-rc.0 hack/pin-dependency.sh go.etcd.io/etcd/pkg/v3 v3.5.0-rc.0 hack/pin-dependency.sh go.etcd.io/etcd/server/v3 v3.5.0-rc.0 hack/pin-dependency.sh go.etcd.io/etcd/tests/v3 v3.5.0-rc.0 hack/pin-dependency.sh google.golang.org/grpc latest " | bash 2. Linted transitive dependencies until versions are clean: hack/lint-dependencies.sh | grep " hack/pin-dependency.sh" | bash 3. Linted dependencies until dropped versions are clean: hack/lint-dependencies.sh | grep "dropreplace" | bash 4. Updated vendor and internal modules: hack/update-vendor.sh hack/update-internal-modules.sh Repeated steps 2-4 until clean
17 lines
515 B
Go
17 lines
515 B
Go
//
|
|
/*
|
|
grpc_logsettable contains a thread-safe wrapper around grpc-logging
|
|
infrastructure.
|
|
|
|
The go-grpc assumes that logger can be only configured once as the `SetLoggerV2`
|
|
method is:
|
|
```Not mutex-protected, should be called before any gRPC functions.```
|
|
|
|
This package allows to supply parent logger once ("before any grpc"), but
|
|
later change underlying implementation in thread-safe way when needed.
|
|
|
|
It's in particular useful for testing, where each testcase might need its own
|
|
logger.
|
|
*/
|
|
package grpc_logsettable
|