laravel-request-logger icon indicating copy to clipboard operation
laravel-request-logger copied to clipboard

Missing request-logger.exclude

Open oceanapplications opened this issue 9 years ago • 4 comments

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

oceanapplications avatar Feb 25 '16 01:02 oceanapplications

im having the same issue here plz reply

AnassBounhar avatar Mar 05 '16 17:03 AnassBounhar

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

AnassBounhar avatar Mar 05 '16 17:03 AnassBounhar

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

crisp-github avatar May 24 '16 11:05 crisp-github

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.

ozanmuyes avatar Jul 26 '16 09:07 ozanmuyes