Spaces:
Running
Running
🔧 Connect SupabaseDatabase to enhanced debugging
Browse files- SupabaseDatabase.test_connection() now uses the enhanced debugging
- This will show detailed connection info in the logs
- Should help us see exactly what's failing with the new JWT keys
The enhanced logging will now be triggered during app startup.
- supabase_database.py +3 -8
supabase_database.py
CHANGED
@@ -31,14 +31,9 @@ class SupabaseDatabase:
|
|
31 |
return False
|
32 |
|
33 |
def test_connection(self) -> bool:
|
34 |
-
"""Test Supabase connection"""
|
35 |
-
|
36 |
-
|
37 |
-
logger.info("Supabase connection successful")
|
38 |
-
return True
|
39 |
-
except Exception as e:
|
40 |
-
logger.error(f"Supabase connection failed: {e}")
|
41 |
-
return False
|
42 |
|
43 |
def create_tree(self, tree_data: Dict[str, Any]) -> Dict[str, Any]:
|
44 |
"""Create a new tree record"""
|
|
|
31 |
return False
|
32 |
|
33 |
def test_connection(self) -> bool:
|
34 |
+
"""Test Supabase connection with enhanced debugging"""
|
35 |
+
from supabase_client import test_supabase_connection
|
36 |
+
return test_supabase_connection()
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
def create_tree(self, tree_data: Dict[str, Any]) -> Dict[str, Any]:
|
39 |
"""Create a new tree record"""
|