Skip to content

Commit f3d16fd

Browse files
committed
Update deprection warning
1 parent b2e7ab8 commit f3d16fd

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

quotientai/async_client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from typing import Any, Dict, List, Optional, Union
88
import traceback
99
import httpx
10+
import warnings
1011

1112
from quotientai import resources
1213
from quotientai.exceptions import handle_async_errors, logger
@@ -244,7 +245,16 @@ async def log(
244245
245246
Merges the default tags (set via init) with any runtime-supplied tags and calls the
246247
underlying non_blocking_create function.
248+
249+
.. deprecated:: 0.4.0
250+
Use :meth:`quotient.log()` instead. This method will be removed in a future version.
247251
"""
252+
warnings.warn(
253+
"quotient.logger.log() is deprecated and will be removed in a future version. "
254+
"Please use quotient.log() instead.",
255+
DeprecationWarning,
256+
stacklevel=2
257+
)
248258
if not self._configured:
249259
logger.error(
250260
f"Logger is not configured. Please call init() before logging."

quotientai/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def log(
249249
Merges the default tags (set via init) with any runtime-supplied tags and calls the
250250
underlying non_blocking_create function.
251251
252-
.. deprecated:: 1.0.0
252+
.. deprecated:: 0.4.0
253253
Use :meth:`quotient.log()` instead. This method will be removed in a future version.
254254
"""
255255
warnings.warn(

0 commit comments

Comments
 (0)