From 78c1035280c2d906c4cac5f1e01a038ee1106f35 Mon Sep 17 00:00:00 2001 From: Josh Pooley Date: Tue, 23 Apr 2024 11:52:14 +0100 Subject: [PATCH] fix: change deprecation warning to a log message so that it displays in console by default --- src/osdatahub/__init__.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/osdatahub/__init__.py b/src/osdatahub/__init__.py index 25c92e6..50369dd 100644 --- a/src/osdatahub/__init__.py +++ b/src/osdatahub/__init__.py @@ -1,14 +1,12 @@ import os import json -import warnings +import logging -message = """ -> **Important Notice**: -> -> - The osdatahub Python package is no longer actively maintained and will not receive updates. -> - It may become incompatible with future OS Data Hub APIs. +message = """Deprecation Warning: +- The osdatahub Python package is no longer actively maintained and will not receive updates. +- It may become incompatible with future OS Data Hub APIs. """ -warnings.warn(message, DeprecationWarning) +logging.warning(message) os.environ["_OSDATAHUB_PROXIES"] = json.dumps({})