Skip to content

Commit

Permalink
Merge branch 'main' into improve-transcript-logging
Browse files Browse the repository at this point in the history
  • Loading branch information
greenw0lf committed Jan 21, 2025
2 parents bcb7f19 + 5dc6720 commit 20a0a24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions api.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
W_MODEL,
)


logger = logging.getLogger(__name__)
api = FastAPI()

Expand Down
5 changes: 4 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,7 @@
logger.info(f"Got the following CMD line arguments: {args}")

port = int(args.port)
uvicorn.run(api, port=port, host="0.0.0.0")
log_config = uvicorn.config.LOGGING_CONFIG
log_config["formatters"]["default"]["fmt"] = LOG_FORMAT

uvicorn.run(api, port=port, host="0.0.0.0", log_config=log_config)

0 comments on commit 20a0a24

Please sign in to comment.