Skip to content

Commit

Permalink
Log request on system error.
Browse files Browse the repository at this point in the history
  • Loading branch information
t2gran committed Dec 12, 2023
1 parent 3278f21 commit bfd5b72
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ Response executeGraphQL(
} catch (CoercingParseValueException | UnknownOperationException e) {
return ExecutionResultMapper.badRequestResponse(e.getMessage());
} catch (Exception systemError) {
LOG.error(systemError.getMessage(), systemError);
LOG.error(
systemError.getMessage() + "\n Request: " + query + "\n Variables: " + variables,
systemError
);
return ExecutionResultMapper.systemErrorResponse(systemError.getMessage());
}
}
Expand Down

0 comments on commit bfd5b72

Please sign in to comment.