Skip to content

Commit

Permalink
fix: logic was wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
flippipe committed Aug 12, 2024
1 parent 1b961dd commit 2004220
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion otel_log_wrapper/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "otel_log_wrapper"
version = "0.0.3"
version = "0.0.4"
description = "Description of my package"
authors = [
{ name="Filipe Carvalho", email="[email protected]" },
Expand Down
2 changes: 1 addition & 1 deletion otel_log_wrapper/src/otel_log_wrapper/otlp_log_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self, name, correlation_id, level='DEBUG'):
print('Not found a logging_config.json file')

# configure OTLP
if os.getenv('OTEL_EXPORTER_OTLP_ENDPOINT'):
if not os.getenv('OTEL_EXPORTER_OTLP_ENDPOINT'):
logging.debug('OTEL_EXPORTER_OTLP_ENDPOINT not found.')
self._setup_otlp()

Expand Down

0 comments on commit 2004220

Please sign in to comment.