Debug pass-through exceptions for Ignition (#11773)

* pass-through exceptions for ignition

* Warn when APP_DEBUG is enabled
This commit is contained in:
Tony Murray
2020-06-05 11:50:01 -05:00
committed by GitHub
parent 9836aab818
commit 6da2f43e6b
2 changed files with 9 additions and 3 deletions

View File

@@ -42,5 +42,9 @@ class Configuration extends BaseValidation
if (Config::get('alerts.email.enable') == true) {
$validator->warn('You have the old alerting system enabled - this is to be deprecated on the 1st of June 2015: https://groups.google.com/forum/#!topic/librenms-project/1llxos4m0p4');
}
if (config('app.debug')) {
$validator->warn('Debug enabled. This is a security risk.');
}
}
}