Added threaded create_vm endpoint

This commit is contained in:
Qubasa
2023-09-25 16:28:32 +02:00
committed by Mic92
parent da02c7f4ae
commit b58b274118
8 changed files with 120 additions and 89 deletions

View File

@@ -42,5 +42,9 @@ def setup_app() -> FastAPI:
#TODO: How do I get the log level from the command line in here?
custom_logger.register(logging.DEBUG)
app = setup_app()
for i in app.exception_handlers.items():
log.info(f"Registered exception handler: {i}")
log.warn("log warn")
log.debug("log debug")