-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logging of storage operations #1449
Comments
You can easily add a listener for the exception and perform whatever you want (logging, etc.) |
@garak how? It seems to me it is just swallowed... :) |
Sorry, I misread, you're right. |
@garak no problem :) This would require a try catch in UploadHandler wouldn't it? So that the exception is caught there and an event emitted? If the exception is thrown all the way then that would be a BC break - no? |
On second thought, it's better to keep it like it is now. Maybe you can exploit a combination of pre-remove and post-remove events to reach your goal. |
I would like to politely disagree. Debugging config errors etc in a storage handler is impossible the way it is setup now with silent fail. The simplest solution would be a PR where the StorageHandlers get a logger and log each execption. This surfaces the error but does not change the overall behavior of the system. IMHO the other option is to let the UploadHandler catch the exception and emit an event. |
I'd rather avoid adding a new dependency. |
Feature Request
If storage fails, then the errors should be logged.
For example in the FlySystemStorage module we got:
This error is not propagated anywhere. It would be very usefull if it at least got logged.
Summary
Log errors in storagehandlers.
The text was updated successfully, but these errors were encountered: