Skip to content

Commit fa97f3f

Browse files
authored
Merge pull request #2922 from kubernetes-sigs/refine-logging2
cleanup: refine logging
2 parents e9381c1 + 9ee9247 commit fa97f3f

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
@@ -783,7 +783,6 @@ func (d *Driver) ensureMountPoint(target string, perm os.FileMode) (bool, error)
783783
}
784784

785785
func (d *Driver) mountWithProxy(ctx context.Context, source, target, fsType string, options, sensitiveMountOptions []string) error {
786-
klog.V(2).Infof("start connecting to azurefile proxy")
787786
conn, err := grpc.NewClient(d.azurefileProxyEndpoint, grpc.WithTransportCredentials(insecure.NewCredentials()))
788787
if err != nil {
789788
klog.Error("failed to connect to azurefile proxy:", err)
@@ -817,6 +816,7 @@ func (d *Driver) mountWithProxy(ctx context.Context, source, target, fsType stri
817816
if err = volumehelper.WaitUntilTimeout(MountTimeoutInSec*time.Second, execFunc, timeoutFunc); err != nil {
818817
klog.Error("GRPC call returned with an error:", err)
819818
}
819+
klog.V(2).Infof("mount %s on %s with azurefile proxy completed with error: %v", source, target, err)
820820
return err
821821
}
822822

0 commit comments

Comments
 (0)