mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +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"
|
"google.golang.org/grpc"
|
||||||
|
|
||||||
|
csicommon "github.com/ceph/ceph-csi/internal/csi-common"
|
||||||
"github.com/ceph/ceph-csi/internal/util/log"
|
"github.com/ceph/ceph-csi/internal/util/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -86,7 +87,7 @@ func (cas *CSIAddonsServer) RegisterService(svc CSIAddonsService) {
|
|||||||
// returned.
|
// returned.
|
||||||
func (cas *CSIAddonsServer) Start() error {
|
func (cas *CSIAddonsServer) Start() error {
|
||||||
// create the gRPC server and register services
|
// create the gRPC server and register services
|
||||||
cas.server = grpc.NewServer()
|
cas.server = grpc.NewServer(csicommon.NewMiddlewareServerOption(false))
|
||||||
|
|
||||||
for _, svc := range cas.services {
|
for _, svc := range cas.services {
|
||||||
svc.RegisterService(cas.server)
|
svc.RegisterService(cas.server)
|
||||||
|
Loading…
Reference in New Issue
Block a user