Log configuration fixed

This commit is contained in:
gdw6463
2024-05-17 17:26:46 +08:00
parent f2d87ec1ea
commit cc44574ffb
4 changed files with 24 additions and 11 deletions

View File

@ -14,7 +14,7 @@ class Main():
def run(self):
logger = logging.getLogger(__name__)
logger.info("jarvis-models start", extra={"version": "0.0.1"})
uvicorn.run("server:app", host="0.0.0.0", port=8001, log_level="info")
uvicorn.run("server:app", host="0.0.0.0", port=8000, log_level="info")
if __name__ == "__main__":
injector = Injector()