UniSharp / laravel-filemanager

Media gallery with CKEditor, TinyMCE and Summernote support. Built on Laravel file system.
https://unisharp.github.io/laravel-filemanager/
MIT License
2.09k stars 720 forks source link

Logs left in code #1229

Closed Samvdg closed 7 months ago

Samvdg commented 7 months ago

So there is 2 places where 'Log::' gets used

In UploadController : 38 and LfmPath : 235

In uploadcontroller we log an error. This messes with my bugreporting tool. Is this still necessery here? We throw exceptions everywhere else. In case this is intended, i will look for a different workaround but it doesn't immediately seem like this piece of code should be here.

streamtw commented 7 months ago

These two logs are left intentionally, to avoid the anti-pattern: "Error should never pass silently".

But if it troubles you, I think it may be solved by using another logging channel setting in config/logging.php, exclusively for laravel file manager. How do you think?

Samvdg commented 7 months ago

Good to know, thank you! This makes sense. I will check out logging.php, thank you for the suggestion!