Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
import traceback
from typing import (
Any,
Expand All @@ -15,7 +16,6 @@
Response,
ResponseException,
)
import logging

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -66,7 +66,7 @@ def _build_response_from_graphql(result: ExecutionResult) -> Response:
for error in errors:
if isinstance(error.original_error, ResponseException):
status = error.original_error.status
error_trace = ''.join(traceback.format_tb(error.original_error.__traceback__))
error_trace = "".join(traceback.format_tb(error.original_error.__traceback__))
logger.exception(f"Raised a system exception:\n {error_trace}")
else:
logger.error(f"Raised an application exception:\n {error}")
Expand Down