mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 00:10:20 +00:00
util: add common logging to csi-addons gRPC
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
bb5d3b7257
commit
8eaf1abbdc
@ -25,6 +25,7 @@ import (
|
||||
|
||||
"google.golang.org/grpc"
|
||||
|
||||
csicommon "github.com/ceph/ceph-csi/internal/csi-common"
|
||||
"github.com/ceph/ceph-csi/internal/util/log"
|
||||
)
|
||||
|
||||
@ -86,7 +87,7 @@ func (cas *CSIAddonsServer) RegisterService(svc CSIAddonsService) {
|
||||
// returned.
|
||||
func (cas *CSIAddonsServer) Start() error {
|
||||
// create the gRPC server and register services
|
||||
cas.server = grpc.NewServer()
|
||||
cas.server = grpc.NewServer(csicommon.NewMiddlewareServerOption(false))
|
||||
|
||||
for _, svc := range cas.services {
|
||||
svc.RegisterService(cas.server)
|
||||
|
Loading…
Reference in New Issue
Block a user