add logging

This commit is contained in:
austnv
2026-06-14 16:29:01 +03:00
parent cb86a92246
commit 5dc98f2881
2 changed files with 12 additions and 28 deletions
+3
View File
@@ -1,8 +1,11 @@
from fastapi import FastAPI
import tomllib
import logging
from routers import ip
logging.basicConfig(level=logging.INFO)
def get_version_from_pyproject():
with open("pyproject.toml", "rb") as f:
data = tomllib.load(f)