Skip to content

Commit ff449dd

Browse files
committed
use fastapi logger
1 parent 2b24025 commit ff449dd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

projects/fal/src/fal/app.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,13 @@ async def provide_hints(request, call_next):
103103
try:
104104
response.headers["X-Fal-Runner-Hints"] = ",".join(self.provide_hints())
105105
except Exception as exc:
106-
logger.warning("Failed to provide hints: %s", exc)
106+
from fastapi.logger import logger
107107

108+
logger.exception(
109+
"Failed to provide hints for %s",
110+
self.__class__.__name__,
111+
exc_info=exc,
112+
)
108113
return response
109114

110115
_app.add_middleware(

0 commit comments

Comments
 (0)