diff --git a/pkg/gce-pd-csi-driver/controller.go b/pkg/gce-pd-csi-driver/controller.go index b2157960f..c2e40a69c 100644 --- a/pkg/gce-pd-csi-driver/controller.go +++ b/pkg/gce-pd-csi-driver/controller.go @@ -578,7 +578,7 @@ func (gceCS *GCEControllerServer) executeControllerPublishVolume(ctx context.Con if gce.IsGCENotFoundError(err) { return nil, status.Errorf(codes.NotFound, "Could not find disk %v: %v", volKey.String(), err.Error()), diskType } - return nil, status.Errorf(codes.Internal, "Failed to getDisk: %v", err.Error()), diskType + return nil, common.LoggedError("Failed to getDisk: ", err), diskType } instanceZone, instanceName, err := common.NodeIDToZoneAndName(nodeID) if err != nil {