brefphp / laravel-bridge

Package to use Laravel on AWS Lambda with Bref
https://bref.sh/docs/frameworks/laravel.html
MIT License
314 stars 63 forks source link

Is there a way to disable the automatic logging added by this package for "Job Processing" and "Job Processed" ? #146

Open vesper8 opened 6 months ago

vesper8 commented 6 months ago

I noticed ever since I added this package that my log file becomes filled with Job Processing and Job Processed for all of my queued jobs, including whenever I broadcast an event. I was surprised to not find an entry in the config file to disable this behaviour? Am I missing something?

mnapoli commented 6 months ago

Hi! I don't think you're missing anything, this could be great to have an option, like for https://github.com/brefphp/laravel-bridge/pull/143

tillkruss commented 6 months ago

Should we maybe add a bref.log_level option so it's configureable and documented?

mnapoli commented 6 months ago

That sounds like a good idea!

tillkruss commented 6 months ago

@vesper8 Feel like submitting a PR?

vesper8 commented 6 months ago

Sure : )

Here you go https://github.com/brefphp/laravel-bridge/pull/147

Please don't ask me to write tests for this :-/

tillkruss commented 6 months ago

Thanks @vesper8, I think we need to talk this out internally, but we'll have a solution in a few days 👍