meumobi / AMS.Connect

1 stars 0 forks source link

Improve logs when ErrorException:: array_reduce() in /app/app/Services/rubicon/RubiconPresenter.php:51 #101

Closed vdias38 closed 6 years ago

vdias38 commented 6 years ago

Expected behaviour

Tell us what should happen

Actual behaviour

[2018-01-03 19:50:05] lumen.INFO: Job Handle: Rubicon [{"start":"2017-12-24 00:00:00","end":"2017-12-24 23:59:59","mode":"publish"}] []
[2018-01-03 19:50:06] lumen.ERROR: ErrorException: array_reduce() expects parameter 1 to be array, null given in /app/app/Services/rubicon/RubiconPresenter.php:51 Stack trace: #0 [internal function]: Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}(2, 'array_reduce() ...', '/app/app/Servic...', 51, Array) #1 /app/app/Services/rubicon/RubiconPresenter.php(51): array_reduce(NULL, Object(Closure), Array) #2 /app/app/Services/rubicon/RubiconService.php(53)

Steps to reproduce

1. 2. 3.

Expected responses