Skip to content

Commit fd05887

Browse files
authored
Merge pull request #85 from honeybadger-io/report-data
Add report_data to config
2 parents f3d8c1e + 6f08665 commit fd05887

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

.styleci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
preset: laravel
22

33
disabled:
4+
- laravel_braces
45
- single_class_element_per_statement

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [Unreleased]
88

9+
## [3.10.0] - 2021-05-09
10+
### Added
11+
- Added `report_data` to default config ([#85](https://github.com/honeybadger-io/honeybadger-laravel/pull/85))
12+
913
## [3.9.0] - 2021-04-12
1014
### Added
1115
- Honeybadger can now set route action and user context automatically—no middleware needed ([#82](https://github.com/honeybadger-io/honeybadger-laravel/pull/82/))

config/honeybadger.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@
88
*/
99
'api_key' => env('HONEYBADGER_API_KEY'),
1010

11+
/**
12+
* The application environment.
13+
*/
14+
'environment_name' => env('APP_ENV'),
15+
16+
/**
17+
* To disable exception reporting, set this to false.
18+
*/
19+
'report_data' => ! in_array(env('APP_ENV'), ['local', 'testing']),
20+
1121
/**
1222
* When reporting an exception, we'll automatically include relevant environment variables.
1323
* See the Environment Whitelist (https://docs.honeybadger.io/lib/php/reference/configuration.html#environment-whitelist) for details.
@@ -59,11 +69,6 @@
5969
*/
6070
'project_root' => base_path(),
6171

62-
/**
63-
* The application environment.
64-
*/
65-
'environment_name' => env('APP_ENV'),
66-
6772
/**
6873
* Older PHP functions use the Error class, while modern PHP mostly uses Exception.
6974
* Specify if you'd like Honeybadger to report both types of errors.

src/HoneybadgerLaravel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
class HoneybadgerLaravel extends Honeybadger
1313
{
14-
const VERSION = '3.9.0';
14+
const VERSION = '3.10.0';
1515

1616
// Don't forget to sync changes to this with the config file defaults
1717
const DEFAULT_BREADCRUMBS = [

0 commit comments

Comments
 (0)