Skip to content

Commit 24852f5

Browse files
committed
add logs about experimental api
1 parent 8f3b8af commit 24852f5

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

ydb/query/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"QueryClientSync",
88
]
99

10+
import logging
11+
1012
from .base import (
1113
IQueryClient,
1214
SupportedDriverType,
@@ -24,9 +26,12 @@
2426

2527
from .pool import QuerySessionPool
2628

29+
logger = logging.getLogger(__name__)
30+
2731

2832
class QueryClientSync(IQueryClient):
2933
def __init__(self, driver: SupportedDriverType, query_client_settings: QueryClientSettings = None):
34+
logger.warning("QueryClientSync is an experimental API, which could be changed.")
3035
self._driver = driver
3136
self._settings = query_client_settings
3237

ydb/query/pool.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import logging
12
from typing import Callable
23

34
from . import base
@@ -9,6 +10,8 @@
910
retry_operation_sync,
1011
)
1112

13+
logger = logging.getLogger(__name__)
14+
1215

1316
class QuerySessionPool:
1417
"""QuerySessionPool is an object to simplify operations with sessions of Query Service."""
@@ -18,6 +21,7 @@ def __init__(self, driver: base.SupportedDriverType):
1821
:param driver: A driver instance
1922
"""
2023

24+
logger.warning("QuerySessionPool is an experimental API, which could be changed.")
2125
self._driver = driver
2226

2327
def checkout(self):

0 commit comments

Comments
 (0)