typo in logPromise