Skip to content

Commit

Permalink
fix: expose uvicorn error logs
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
frostming committed Jan 2, 2025
1 parent 9ea7c9c commit 2bcf633
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bentoml/_internal/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ def filter(self, record: LogRecord) -> bool | LogRecord:
"handlers": ["tracehandler"],
"propagate": False,
},
"uvicorn.error": {
"level": logging.WARNING,
"handlers": ["tracehandler"],
"propagate": True,
},
},
"root": {
"handlers": ["tracehandler"],
Expand Down

0 comments on commit 2bcf633

Please sign in to comment.