Add additional logging when a cache write error occurs