SHAFI commited on
Commit ·
98abff4
1
Parent(s): b715e77
fix: Suppress Appwrite fetch logs and deprecation warnings
Browse files
app/services/appwrite_db.py
CHANGED
|
@@ -8,6 +8,7 @@ Provides persistent storage for news articles with fast querying capability.
|
|
| 8 |
# We're using v4.1.0 for stability, suppress warnings until we upgrade
|
| 9 |
import warnings
|
| 10 |
warnings.filterwarnings('ignore', category=DeprecationWarning, module='appwrite')
|
|
|
|
| 11 |
|
| 12 |
try:
|
| 13 |
from appwrite.client import Client
|
|
|
|
| 8 |
# We're using v4.1.0 for stability, suppress warnings until we upgrade
|
| 9 |
import warnings
|
| 10 |
warnings.filterwarnings('ignore', category=DeprecationWarning, module='appwrite')
|
| 11 |
+
warnings.filterwarnings('ignore', message='Call to deprecated function') # Catch-all for Appwrite logs
|
| 12 |
|
| 13 |
try:
|
| 14 |
from appwrite.client import Client
|