mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Only add rollbar to the logging array if the app is in production
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
8048d06853
commit
0c3d03a4ce
|
@ -120,7 +120,7 @@ $config = [
|
|||
|
||||
|
||||
// Only add rollbar if the .env has a rollbar token
|
||||
if (env('ROLLBAR_TOKEN')) {
|
||||
if ((env('APP_ENV')=='production') && (env('ROLLBAR_TOKEN'))) {
|
||||
$config['channels']['stack']['channels'] = ['single', 'rollbar'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue