From 3a00b6d4e34cdf8de551aadc29bc4dfa8ca146a4 Mon Sep 17 00:00:00 2001 From: sabonerune <102559104+sabonerune@users.noreply.github.com> Date: Wed, 20 Nov 2024 22:28:06 +0900 Subject: [PATCH] =?UTF-8?q?FIX:=20=E6=9C=AA=E5=87=A6=E7=90=86=E3=81=AE?= =?UTF-8?q?=E4=BE=8B=E5=A4=96=E3=81=8C=E7=99=BA=E7=94=9F=E3=81=97=E3=81=9F?= =?UTF-8?q?=E5=A0=B4=E5=90=88=E3=82=B9=E3=82=BF=E3=83=83=E3=82=AF=E3=83=88?= =?UTF-8?q?=E3=83=AC=E3=83=BC=E3=82=B9=E3=81=8C=E8=A1=A8=E7=A4=BA=E3=81=95?= =?UTF-8?q?=E3=82=8C=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- voicevox_engine/app/middlewares.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/voicevox_engine/app/middlewares.py b/voicevox_engine/app/middlewares.py index a26423464..509e3d15a 100644 --- a/voicevox_engine/app/middlewares.py +++ b/voicevox_engine/app/middlewares.py @@ -3,6 +3,7 @@ import re import sys from collections.abc import Awaitable, Callable +from traceback import print_exception from fastapi import FastAPI, Request, Response from fastapi.middleware.cors import CORSMiddleware @@ -20,6 +21,7 @@ def configure_middlewares( # 未処理の例外が発生するとCORSMiddlewareが適用されない問題に対するワークアラウンド # ref: https://github.com/VOICEVOX/voicevox_engine/issues/91 async def global_execution_handler(request: Request, exc: Exception) -> Response: + print_exception(exc) return JSONResponse( status_code=500, content="Internal Server Error",