Started working on vm_create

This commit is contained in:
Qubasa
2023-09-22 19:58:45 +02:00
committed by Mic92
parent ff0dc18686
commit da02c7f4ae
4 changed files with 13 additions and 5 deletions

View File

@@ -11,6 +11,8 @@ from .routers import flake, health, machines, root, vms
origins = [
"http://localhost:3000",
]
# Logging setup
log = logging.getLogger(__name__)
def setup_app() -> FastAPI:
@@ -37,6 +39,8 @@ def setup_app() -> FastAPI:
return app
custom_logger.register(logging.getLogger('uvicorn').level)
#TODO: How do I get the log level from the command line in here?
custom_logger.register(logging.DEBUG)
app = setup_app()
log.warn("log warn")
log.debug("log debug")