Skip to content

Commit d6e1396

Browse files
andyzhangxk8s-infra-cherrypick-robot
authored andcommitted
cleanup: refine logging
fix
1 parent 4736a58 commit d6e1396

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/azurefile/nodeserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,6 @@ func (d *Driver) ensureMountPoint(target string, perm os.FileMode) (bool, error)
763763
}
764764

765765
func (d *Driver) mountWithProxy(ctx context.Context, source, target, fsType string, options, sensitiveMountOptions []string) error {
766-
klog.V(2).Infof("start connecting to azurefile proxy")
767766
conn, err := grpc.NewClient(d.azurefileProxyEndpoint, grpc.WithTransportCredentials(insecure.NewCredentials()))
768767
if err != nil {
769768
klog.Error("failed to connect to azurefile proxy:", err)
@@ -797,6 +796,7 @@ func (d *Driver) mountWithProxy(ctx context.Context, source, target, fsType stri
797796
if err = volumehelper.WaitUntilTimeout(MountTimeoutInSec*time.Second, execFunc, timeoutFunc); err != nil {
798797
klog.Error("GRPC call returned with an error:", err)
799798
}
799+
klog.V(2).Infof("mount %s on %s with azurefile proxy completed with error: %v", source, target, err)
800800
return err
801801
}
802802

0 commit comments

Comments
 (0)