Add some more logging (#2402)

* Add a few logs

* Report unknown create account errors separately

* Downgrade to warn

* Nvm
This commit is contained in:
Eric Bailey 2024-01-03 00:11:04 -06:00 committed by GitHub
parent d95972c9ff
commit 2f6f27c4fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 10 deletions

View file

@ -181,14 +181,10 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
const createAccount = React.useCallback<ApiContext['createAccount']>(
async ({service, email, password, handle, inviteCode}: any) => {
logger.debug(
`session: creating account`,
{
service,
handle,
},
logger.DebugContext.session,
)
logger.info(`session: creating account`, {
service,
handle,
})
track('Try Create Account')
const agent = new BskyAgent({service})