MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / get_debug_config

Method get_debug_config

src/core/database.py:1787–1797  ·  view source on GitHub ↗

Get debug configuration

(self)

Source from the content-addressed store, hash-verified

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,

Callers 1

Calls 2

_connectMethod · 0.95
DebugConfigClass · 0.85

Tested by

no test coverage detected