Skip to content

Commit

Permalink
OXDEV-7961: Add changelog entries; Add context (trace) for logged err…
Browse files Browse the repository at this point in the history
…ors;
  • Loading branch information
MarcelOxid committed Mar 21, 2024
1 parent 6633bf6 commit 3e1566f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG-v8.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Replace webmozart/path-util usage with symfony/filesystem
- Order of DataType-methods for alphabetic order in schema
- Set DebugFlag for error output to default

### Added
- Workflow trigger to update schema in documentation
- Descriptions for queries, mutations and DataType-fields
- Context (trace) for logged errors

## [8.0.1] - 2023-06-30

Expand Down
2 changes: 1 addition & 1 deletion src/Framework/GraphQLQueryHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public static function addError(Error $e): void
private function getErrors(): \Closure
{
return function (Error $error) {
$this->logger->error((string)$error);
$this->logger->error($error->getMessage(), [$error]);

return FormattedError::createFromException($error);
};
Expand Down

0 comments on commit 3e1566f

Please sign in to comment.