From 2004220cbb0c6944d603adfc38a14c1edfbc87b5 Mon Sep 17 00:00:00 2001 From: Filipe Carvalho Date: Mon, 12 Aug 2024 20:23:04 +0100 Subject: [PATCH] fix: logic was wrong --- otel_log_wrapper/pyproject.toml | 2 +- otel_log_wrapper/src/otel_log_wrapper/otlp_log_wrapper.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()