Skip to content

Commit

Permalink
util: add common logging to csi-addons gRPC
Browse files Browse the repository at this point in the history
Signed-off-by: Niels de Vos <[email protected]>
  • Loading branch information
nixpanic authored and mergify[bot] committed Dec 23, 2021
1 parent bb5d3b7 commit 8eaf1ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/csi-addons/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8eaf1ab

Please sign in to comment.