diff --git a/otel_log_wrapper/pyproject.toml b/otel_log_wrapper/pyproject.toml index ccb1ab7..fb7f23b 100644 --- a/otel_log_wrapper/pyproject.toml +++ b/otel_log_wrapper/pyproject.toml @@ -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="filipe.carvalho@nos.pt" }, diff --git a/otel_log_wrapper/src/otel_log_wrapper/otlp_log_wrapper.py b/otel_log_wrapper/src/otel_log_wrapper/otlp_log_wrapper.py index d86b1ff..ace6a01 100644 --- a/otel_log_wrapper/src/otel_log_wrapper/otlp_log_wrapper.py +++ b/otel_log_wrapper/src/otel_log_wrapper/otlp_log_wrapper.py @@ -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()