Skip to content

Commit

Permalink
Merge pull request #399 from Scale3-Labs/development
Browse files Browse the repository at this point in the history
Enable Trace Logging
  • Loading branch information
alizenhom authored Nov 7, 2024
2 parents 17293ca + 8c56527 commit f9829bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/langtrace_python_sdk/langtrace.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@
from langtrace_python_sdk.extensions.langtrace_exporter import LangTraceExporter
from sentry_sdk.types import Event, Hint

logging.disable(level=logging.INFO)


class LangtraceConfig:
def __init__(self, **kwargs):
Expand Down Expand Up @@ -216,7 +214,7 @@ def init(
disable_logging: bool = False,
headers: Dict[str, str] = {},
):
logging.disable(level=logging.INFO)

check_if_sdk_is_outdated()
config = LangtraceConfig(
api_key=api_key,
Expand All @@ -232,6 +230,7 @@ def init(
)

if config.disable_logging:
logging.disable(level=logging.INFO)
sys.stdout = open(os.devnull, "w")

host = get_host(config)
Expand Down
2 changes: 1 addition & 1 deletion src/langtrace_python_sdk/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.3.1"
__version__ = "3.3.2"

0 comments on commit f9829bc

Please sign in to comment.