add exc_info to fastmcp run

This commit is contained in:
jake@prefect.io 2025-10-28 10:14:53 -04:00
commit a2f710fa9d

View file

@ -504,6 +504,7 @@ async def run(
except subprocess.CalledProcessError as e:
logger.error(
f"Failed to run: {e}",
exc_info=True,
extra={
"server_spec": server_spec,
"error": str(e),
@ -528,6 +529,7 @@ async def run(
except Exception as e:
logger.error(
f"Failed to run: {e}",
exc_info=True,
extra={
"server_spec": server_spec,
"error": str(e),