rollbar / rollbar-php-laravel

Rollbar error monitoring integration for Laravel projects
https://docs.rollbar.com/docs/laravel
140 stars 39 forks source link

Rollbar logger fails when app config is cached #100

Closed wpearse closed 2 years ago

wpearse commented 4 years ago

If you cache your Laravel config:

php artisan config:cache

You will stop receiving Rollbar logs in your dashboard, and you will see this error in your log files:

Unresolvable dependency resolving [Parameter #0 [ <required> array $config ]] in class Rollbar\RollbarLogger

This can be "solved" by un-caching your Laravel config (not really a solution):

php artisan config:clear

Seems similar to #64. I'm using rollbar/rollbar-laravel v6.0.0.

danielmorell commented 2 years ago

This should have been fixed in v4.0.1