Get debug configuration
(self)
| 1785 | |
| 1786 | # Debug config operations |
| 1787 | async def get_debug_config(self) -> 'DebugConfig': |
| 1788 | """Get debug configuration""" |
| 1789 | from .models import DebugConfig |
| 1790 | async with self._connect() as db: |
| 1791 | db.row_factory = aiosqlite.Row |
| 1792 | cursor = await db.execute("SELECT * FROM debug_config WHERE id = 1") |
| 1793 | row = await cursor.fetchone() |
| 1794 | if row: |
| 1795 | return DebugConfig(**dict(row)) |
| 1796 | # Return default if not found |
| 1797 | return DebugConfig(enabled=False, log_requests=True, log_responses=True, mask_token=True) |
| 1798 | |
| 1799 | async def update_debug_config( |
| 1800 | self, |
no test coverage detected