spatie / laravel-ray

Debug with Ray to fix problems faster in Laravel apps
https://myray.app
MIT License
291 stars 64 forks source link

Changing configuration using ray.php not working #184

Closed aniket-magadum closed 3 years ago

aniket-magadum commented 3 years ago

I have created a ray.php in my project root and made some changes as below to the file

    'send_dumps_to_ray' => false,
    'send_log_calls_to_ray' => env('SEND_LOG_CALLS_TO_RAY', true),

But still, when I do a dd it's getting logged into Ray and also all exceptions are getting logged into ray how can I disable this. As it is not working for me

Versions Ray version (you can see this in "About Ray"): 1.14.7.0

PHP version: 8.0.3 Laravel version: v8.36.1

Desktop (please complete the following information):

aniket-magadum commented 3 years ago

Can somebody guide me through this. Or should I put in some more description to the problem? Eagerly waiting for a reply :-)

freekmurze commented 3 years ago

What happens I you set send_log_calls_to_ray in the config file to false?

aniket-magadum commented 3 years ago

Ok, I will put all my observations here about the problems I am facing. Firstly this issue mentioned here. I have set send_dumps_to_ray to false as show below but still whenever I do a dd it is sending it to ray

'send_dumps_to_ray' => false,

Here is the code block image

Output in ray image

What happens I you set send_log_calls_to_ray in the config file to false?

When I do this

'send_log_calls_to_ray' => env('SEND_LOG_CALLS_TO_RAY', false),

It does not log to ray

But when I set this to true its logs into ray so this is working as expected.

Log::info('Inside log function');

image

aniket-magadum commented 3 years ago

@freekmurze Please let me know if you need anything else to be done at my end. I want to know If I can disable exception logging altogether in ray?

Nielsvanpach commented 3 years ago

I want to know If I can disable exception logging altogether in ray?

Does this work for you?

'send_exceptions_to_ray' => false,

I can reproduce the dump issue: https://github.com/spatie/laravel-ray/pull/189 We'll look into it.

aniket-magadum commented 3 years ago

Does this work for you?

'send_exceptions_to_ray' => false,

Yeah, this works for me. Not sure if it's intentional but this is not documented here

Anyways I will wait for the dump fix.

Nielsvanpach commented 3 years ago

Dumps can be disabled in the latest release (1.17.3)

I think this solves the last part of your problem, so I'm closing this one.