mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
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:
commit
6815a16a5f
|
@ -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