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:
snipe 2023-01-13 13:50:16 -08:00
parent 8048d06853
commit 0c3d03a4ce

View file

@ -120,7 +120,7 @@ $config = [
// Only add rollbar if the .env has a rollbar token // 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']; $config['channels']['stack']['channels'] = ['single', 'rollbar'];
} }