From bfd5b726fd1d1cb8dd470ce3f5dc43a74cb06110 Mon Sep 17 00:00:00 2001 From: Thomas Gran Date: Tue, 12 Dec 2023 21:22:42 +0100 Subject: [PATCH] Log request on system error. --- .../opentripplanner/ext/transmodelapi/TransmodelGraph.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ext/java/org/opentripplanner/ext/transmodelapi/TransmodelGraph.java b/src/ext/java/org/opentripplanner/ext/transmodelapi/TransmodelGraph.java index 66547da6653..ff2d74851cd 100644 --- a/src/ext/java/org/opentripplanner/ext/transmodelapi/TransmodelGraph.java +++ b/src/ext/java/org/opentripplanner/ext/transmodelapi/TransmodelGraph.java @@ -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()); } }