Adding logging for upload and download errors