|
14 | 14 | # See the License for the specific language governing permissions and |
15 | 15 | # limitations under the License. |
16 | 16 | # |
17 | | - |
| 17 | +import logging |
18 | 18 | from typing import Dict |
19 | 19 | from typing import Optional |
20 | 20 | from google.cloud import aiplatform |
21 | | -from google.cloud.aiplatform import base |
22 | 21 | from ray import client_builder |
23 | 22 | from .render import VertexRayTemplate |
24 | 23 | from .util import _validation_utils |
25 | 24 | from .util import _gapic_utils |
26 | 25 |
|
27 | 26 |
|
28 | 27 | VERTEX_SDK_VERSION = aiplatform.__version__ |
29 | | -_LOGGER = base.Logger(__name__) |
30 | 28 |
|
31 | 29 |
|
32 | 30 | class _VertexRayClientContext(client_builder.ClientContext): |
@@ -84,7 +82,7 @@ def __init__(self, address: Optional[str]) -> None: |
84 | 82 | _validation_utils.valid_resource_name(address) |
85 | 83 |
|
86 | 84 | self.vertex_address = address |
87 | | - _LOGGER.info( |
| 85 | + print( |
88 | 86 | "[Ray on Vertex AI]: Using cluster resource name to access head address with GAPIC API" |
89 | 87 | ) |
90 | 88 |
|
@@ -112,12 +110,12 @@ def __init__(self, address: Optional[str]) -> None: |
112 | 110 | address, |
113 | 111 | " failed to start Head node properly because custom service account isn't supported.", |
114 | 112 | ) |
115 | | - _LOGGER.debug("[Ray on Vertex AI]: Resolved head node ip: %s", address) |
| 113 | + logging.debug("[Ray on Vertex AI]: Resolved head node ip: %s", address) |
116 | 114 | super().__init__(address) |
117 | 115 |
|
118 | 116 | def connect(self) -> _VertexRayClientContext: |
119 | 117 | # Can send any other params to ray cluster here |
120 | | - _LOGGER.info("[Ray on Vertex AI]: Connecting...") |
| 118 | + print("[Ray on Vertex AI]: Connecting...") |
121 | 119 | ray_client_context = super().connect() |
122 | 120 | ray_head_uris = self.response.resource_runtime.access_uris |
123 | 121 |
|
|
0 commit comments