Add some logging to Model.upload method