We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eba5f7f commit c0292ecCopy full SHA for c0292ec
1 file changed
langfuse/_client/client.py
@@ -187,14 +187,16 @@ def __init__(
187
188
self._tracing_enabled = (
189
tracing_enabled
190
- and os.environ.get(LANGFUSE_TRACING_ENABLED, "True") != "False"
+ and os.environ.get(LANGFUSE_TRACING_ENABLED, "true").lower() != "false"
191
)
192
if not self._tracing_enabled:
193
langfuse_logger.info(
194
"Configuration: Langfuse tracing is explicitly disabled. No data will be sent to the Langfuse API."
195
196
197
- debug = debug if debug else (os.getenv(LANGFUSE_DEBUG, "False") == "True")
+ debug = (
198
+ debug if debug else (os.getenv(LANGFUSE_DEBUG, "false").lower() == "true")
199
+ )
200
if debug:
201
logging.basicConfig(
202
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
0 commit comments