Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing request-logger.exclude #7

Open
oceanapplications opened this issue Feb 25, 2016 · 4 comments
Open

Missing request-logger.exclude #7

oceanapplications opened this issue Feb 25, 2016 · 4 comments

Comments

@oceanapplications
Copy link

I'm getting this error message seemingly because config('request-logger.exclude') is returning null.

[2016-02-25 00:26:48] local.ERROR: exception 'ErrorException' with message 'Invalid argument supplied for foreach()' in /var/www/html/vendor/prettus/laravel-request-logger/src/Prettus/RequestLogger/Middlewares/ResponseLoggerMiddleware.php:44

@AnassBounhar
Copy link

im having the same issue here plz reply

@AnassBounhar
Copy link

@oceanapplications i added , 'exclude' => [] to the prettus config file to stop the error

@crisp-github
Copy link

Also needed to make the same change as @AnassBounhar to avoid exceptions like @oceanapplications mentions.

@ozanmuyes
Copy link
Contributor

To clarify the work-around as @AnassBounhar stated; 'exclude' => [] pair MUST be the child of returned array, so logger key is in the same level as exclude key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants