Skip to content

Commit 8b3ec26

Browse files
committed
polish
1 parent 806b6d1 commit 8b3ec26

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,14 @@ from openfeature.evaluation_context import EvaluationContext
107107
client = api.get_client("CLIENT_NAME")
108108

109109
context = EvaluationContext(targeting_key="TARGETING_KEY")
110-
value = await client.get_boolean_value("FLAG_NAME", False, context)
110+
value = await client.get_boolean_value_async("FLAG_NAME", False, context)
111+
```
112+
### Logging
113+
Split Provider use `logging` library, Each module has it's own logger, the root being split_provider. Below is an example of simple usage which will set all libraries using `logging` including the provider, to use `DEBUG` mode.
114+
```python
115+
import logging
116+
117+
logging.basicConfig(level=logging.DEBUG)
111118
```
112119

113120
### Shutting down Split SDK factory

split_openfeature/split_provider.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import typing
22
import logging
33
import json
4-
from threading import Event
54

65
from openfeature.hook import Hook
76
from openfeature.evaluation_context import EvaluationContext

0 commit comments

Comments
 (0)