main,database: add debug log stanzas
All checks were successful
ci/woodpecker/push/workflow Pipeline was successful

closes: #7
This commit is contained in:
bronsen 2026-02-22 20:59:45 +01:00
parent d8101d7c55
commit e5bb663ee8
2 changed files with 7 additions and 0 deletions

View file

@ -15,6 +15,8 @@ from textual.widgets import Button, DataTable, Footer, Header, Input, Static
from .database import create_db_and_tables, engine
from .models import add_to_database, load_initial_data, make_teilchen_input
# Make it so that log messages go to Textual; we should be able to then see
# these in the console
logging.basicConfig(
level="NOTSET",
handlers=[TextualHandler()],
@ -64,6 +66,7 @@ class SearchBar(Static):
async def parse_input(self, event: Input.Submitted) -> None:
if not (tc := await make_teilchen_input(event.value)):
logger.debug("could not create TeilchenCreate from data: %s", event.value)
return
event.input.value = ""