A free open source IT asset/license management system
Only add rollbar to the logging array if the app is in production
snipe0c3d03a4ce0c
diff --git a/config/logging.php b/config/logging.phpindex 548b0c094c..cdd0bbcbdf 100644--- a/config/logging.php+++ b/config/logging.php@@ -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'];}