Skip to content

Commit

Permalink
Check for debug mode only on production
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioribeiro committed Oct 23, 2021
1 parent 2d6d39b commit 28cad8a
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 28cad8a

Please sign in to comment.