Merge pull request #12353 from snipe/fixes/rollbar_logging

Only add rollbar to the logging array if the app is in production
This commit is contained in:
snipe 2023-01-13 13:53:30 -08:00 committed by GitHub
commit 6815a16a5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'];
}