add logging to tokenBasedUpload in TokenBasedUploadCommand