diff --git a/otel_log_wrapper/pyproject.toml b/otel_log_wrapper/pyproject.toml index fb7f23b..81ffcdd 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.4" +version = "0.0.5" 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 ace6a01..03bd647 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 @@ -33,6 +33,7 @@ def __init__(self, name, correlation_id, level='DEBUG'): # configure OTLP if not os.getenv('OTEL_EXPORTER_OTLP_ENDPOINT'): logging.debug('OTEL_EXPORTER_OTLP_ENDPOINT not found.') + else: self._setup_otlp() logging.debug('Log Setup Done')