Skip to content

Commit 6b7912c

Browse files
committed
[Feature] Add log context to the JSON:API exception class
1 parent 36ce142 commit 6b7912c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file. This project adheres to
44
[Semantic Versioning](http://semver.org/) and [this changelog format](http://keepachangelog.com/).
55

6+
## Unreleased
7+
8+
### Added
9+
10+
- The `JsonApiException` class now has a `context()` method. Laravel's exception handler uses this to add log context if
11+
the exception is being logged. This means logging of JSON:API exceptions will now include the HTTP status code and the
12+
JSON:API errors.
13+
614
## [2.3.0] - 2022-04-11
715

816
### Added

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"require": {
2626
"php": "^7.4|^8.0",
2727
"ext-json": "*",
28-
"laravel-json-api/core": "^2.2",
28+
"laravel-json-api/core": "^2.3",
2929
"laravel-json-api/eloquent": "^2.1.1",
3030
"laravel-json-api/encoder-neomerx": "^2.0",
3131
"laravel-json-api/exceptions": "^1.1",

0 commit comments

Comments
 (0)