Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions langfuse/_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,16 @@ def __init__(

self._tracing_enabled = (
tracing_enabled
and os.environ.get(LANGFUSE_TRACING_ENABLED, "True") != "False"
and os.environ.get(LANGFUSE_TRACING_ENABLED, "true").lower() != "false"
)
if not self._tracing_enabled:
langfuse_logger.info(
"Configuration: Langfuse tracing is explicitly disabled. No data will be sent to the Langfuse API."
)

debug = debug if debug else (os.getenv(LANGFUSE_DEBUG, "False") == "True")
debug = (
debug if debug else (os.getenv(LANGFUSE_DEBUG, "false").lower() == "true")
)
if debug:
logging.basicConfig(
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
Expand Down
Loading