Skip to content

Commit cdd9aa9

Browse files
aepfligruebel
andcommitted
Update providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/provider.py
Co-authored-by: Anton Grübel <[email protected]> Signed-off-by: Simon Schrottner <[email protected]>
1 parent 15fb0fc commit cdd9aa9

File tree

1 file changed

+5
-3
lines changed
  • providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd

1 file changed

+5
-3
lines changed

providers/openfeature-provider-flagd/src/openfeature/contrib/provider/flagd/provider.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
# provider.initialise(schema="https",endpoint="example.com",port=1234,timeout=10)
2222
"""
2323

24-
import logging
2524
import typing
25+
import warnings
2626

2727
from openfeature.evaluation_context import EvaluationContext
2828
from openfeature.flag_evaluation import FlagResolutionDetails
@@ -67,8 +67,10 @@ def __init__( # noqa: PLR0913
6767
"""
6868
if deadline is None and timeout is not None:
6969
deadline = timeout * 1000
70-
logging.warn(
71-
"'timeout' property is deprecated, please use 'deadline' instead, be aware that 'deadline' is in milliseconds"
70+
warnings.warn(
71+
"'timeout' property is deprecated, please use 'deadline' instead, be aware that 'deadline' is in milliseconds",
72+
DeprecationWarning,
73+
stacklevel=2,
7274
)
7375

7476
self.config = Config(

0 commit comments

Comments
 (0)