spatie / ray

Debug with Ray to fix problems faster
https://myray.app
MIT License
568 stars 102 forks source link

Ray missing arguments that laravel logs show when calling Log::* #667

Closed outofcontrol closed 2 years ago

outofcontrol commented 2 years ago

Description The output in Ray, when using Log::debug (or any thing) is missing the arguments that appears in Laravel logs.

Versions Ray version: 2.0.1

PHP version: 8.0.1 Laravel version (if applicable): 8.80.0

To Reproduce web.php

Route::get('/test', [TestController::class, '__invoke']);

TestController.php

class TestController extends Controller
{
    public function __invoke()
    {
        Newsletter::subscribe('jane@example.org', ['FNAME' => 'Jane', 'LNAME' => 'Doe']);
    }
}

.env

MAILCHIMP_DRIVER=log

storage/logs/laravel-2022-03-24.log

[2022-03-25 20:37:54] local.DEBUG: Called Spatie Newsletter facade method: subscribe with: ["jane@example.org",{"FNAME":"Jane","LNAME":"Doe"}] 

Output in Ray image

Expected behavior In the above example, I would expect to see the email address and name arguments that appear in the Laravel log. It is quite possible this is the expected behaviour and I am asking too much?

Desktop (please complete the following information):