Skip to content

Commit f9829bc

Browse files
authored
Merge pull request #399 from Scale3-Labs/development
Enable Trace Logging
2 parents 17293ca + 8c56527 commit f9829bc

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/langtrace_python_sdk/langtrace.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@
7979
from langtrace_python_sdk.extensions.langtrace_exporter import LangTraceExporter
8080
from sentry_sdk.types import Event, Hint
8181

82-
logging.disable(level=logging.INFO)
83-
8482

8583
class LangtraceConfig:
8684
def __init__(self, **kwargs):
@@ -216,7 +214,7 @@ def init(
216214
disable_logging: bool = False,
217215
headers: Dict[str, str] = {},
218216
):
219-
logging.disable(level=logging.INFO)
217+
220218
check_if_sdk_is_outdated()
221219
config = LangtraceConfig(
222220
api_key=api_key,
@@ -232,6 +230,7 @@ def init(
232230
)
233231

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

237236
host = get_host(config)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.3.1"
1+
__version__ = "3.3.2"

0 commit comments

Comments
 (0)