Add logging to help track down 401s during registration

This commit is contained in:
Scott Nonnenberg 2019-12-03 13:53:38 -08:00
parent e9f08c3da9
commit 38e9ddef40
2 changed files with 7 additions and 1 deletions

View file

@ -195,7 +195,7 @@
'confirmNumber: error clearing database', 'confirmNumber: error clearing database',
error && error.stack ? error.stack : error error && error.stack ? error.stack : error
); );
finish(); return finish();
}); });
}); });
}); });

View file

@ -422,6 +422,12 @@
); );
await this.deviceNameIsEncrypted(); await this.deviceNameIsEncrypted();
window.log.info(
`createAccount: Number is ${number}, password has length: ${
password ? password.length : 'none'
}`
);
const response = await this.server.confirmCode( const response = await this.server.confirmCode(
number, number,
verificationCode, verificationCode,