diff --git a/src/backend/bisheng/main.py b/src/backend/bisheng/main.py index 9baa756b9..4143a79a3 100644 --- a/src/backend/bisheng/main.py +++ b/src/backend/bisheng/main.py @@ -35,7 +35,7 @@ def handle_http_exception(req: Request, exc: Exception) -> ORJSONResponse: def handle_request_validation_error(req: Request, exc: RequestValidationError) -> ORJSONResponse: msg = {'status_code': status.HTTP_422_UNPROCESSABLE_ENTITY, 'status_message': exc.errors()} - logger.error(f'{req.method} {req.url} {exc.errors()} {exc.body}') + logger.error(f'{req.method} {req.url} {str(exc.errors())[:100]}') return ORJSONResponse(content=msg)