@@ -141,12 +141,12 @@ func (d *Driver) NodePublishVolume(ctx context.Context, req *csi.NodePublishVolu
141141}
142142
143143func (d * Driver ) mountBlobfuseWithProxy (args string , protocol string , authEnv []string ) (string , error ) {
144- klog .V (2 ).Infof ("mouting using blobfuse proxy" )
145144 var resp * mount_azure_blob.MountAzureBlobResponse
146145 var output string
147146 connectionTimout := time .Duration (d .blobfuseProxyConnTimout ) * time .Second
148147 ctx , cancel := context .WithTimeout (context .Background (), connectionTimout )
149148 defer cancel ()
149+ klog .V (2 ).Infof ("start connecting to blobfuse proxy, protocol: %s, args: %s" , protocol , args )
150150 conn , err := grpc .DialContext (ctx , d .blobfuseProxyEndpoint , grpc .WithInsecure (), grpc .WithBlock ())
151151 if err == nil {
152152 mountClient := NewMountClient (conn )
@@ -155,7 +155,7 @@ func (d *Driver) mountBlobfuseWithProxy(args string, protocol string, authEnv []
155155 Protocol : protocol ,
156156 AuthEnv : authEnv ,
157157 }
158- klog .V (2 ).Infof ("calling BlobfuseProxy: MountAzureBlob function" )
158+ klog .V (2 ).Infof ("begin to mount with blobfuse proxy, protocol: %s, args: %s" , protocol , args )
159159 resp , err = mountClient .service .MountAzureBlob (context .TODO (), & mountreq )
160160 if err != nil {
161161 klog .Error ("GRPC call returned with an error:" , err )
@@ -168,15 +168,16 @@ func (d *Driver) mountBlobfuseWithProxy(args string, protocol string, authEnv []
168168func (d * Driver ) mountBlobfuseInsideDriver (args string , protocol string , authEnv []string ) (string , error ) {
169169 var cmd * exec.Cmd
170170
171- klog . V ( 2 ). Infof ( "mounting blobfuse inside driver" )
171+ mountLog := "mount inside driver with"
172172 if protocol == Fuse2 {
173- klog . V ( 2 ). Infof ( "using blobfuse V2 to mount" )
173+ mountLog += " v2"
174174 args = "mount " + args
175175 cmd = exec .Command ("blobfuse2" , strings .Split (args , " " )... )
176176 } else {
177- klog . V ( 2 ). Infof ( "using blobfuse V1 to mount" )
177+ mountLog += " v1"
178178 cmd = exec .Command ("blobfuse" , strings .Split (args , " " )... )
179179 }
180+ klog .V (2 ).Infof ("%s, protocol: %s, args: %s" , mountLog , protocol , args )
180181
181182 cmd .Env = append (os .Environ (), authEnv ... )
182183 output , err := cmd .CombinedOutput ()
0 commit comments