Skip to content

Commit

Permalink
Merge pull request #250 from antonioribeiro/feature/debug-mode-produc…
Browse files Browse the repository at this point in the history
…tion-only

Check for debug mode only on production
  • Loading branch information
antonioribeiro committed Oct 23, 2021
2 parents 2d6d39b + 28cad8a commit dbf9465
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/config/resources/DebugMode.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Debug Mode
name: Debug Mode on Production
abbreviation: debug
checker: PragmaRX\Health\Checkers\Expression
notify: true
column_size: 3
error_message: "Application is in debug mode"
targets:
- default:
expression_value: "app('config')->get('app.debug')"
should_return: false
expression_value: "!app()->environment('production') || !app('config')->get('app.debug')"
should_return: true

0 comments on commit dbf9465

Please sign in to comment.