Skip to content

Commit

Permalink
fix: change deprecation warning to a log message so that it displays …
Browse files Browse the repository at this point in the history
…in console by default
  • Loading branch information
JEPooley committed Apr 23, 2024
1 parent 07bf9f2 commit 78c1035
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/osdatahub/__init__.py
Original file line number Diff line number Diff line change
@@ -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({})

Expand Down

0 comments on commit 78c1035

Please sign in to comment.